Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

cfcache

Explorer ,
Jul 23, 2012 Jul 23, 2012

This question was posted in response to the following article: http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7d5a.html

411
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 23, 2012 Jul 23, 2012
LATEST

Just a word of caution, which may seem obvious to some but could trip someone (as it did me): those using CFCACHE action="flush" expireurl="somevalue", note that if you used a KEY to create the cache, then you MUST specify that KEY in the flush operation as well (adding it to the tag I listed above).

It would be really nice if the CFACHE action="flush" could be extended to return a count of how many items were flushed, since for now it returns no output, so you can't know if you did or did not succeed in flushing anything. This returned count could be done via a new attribute that would name a variable to hold the count, or it could let us name a variable to hold a struct, if perhaps there may be other info that could be returned. While the old disk-based cfcache page caching may not have been well-suited to returning such a count, this new CF9 ehcache-based page caching does indeed suit getting this information, it would seem.


/Charlie (troubleshooter, carehart. org)
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources