Skip to main content
Inspiring
June 25, 2013
Question

Migrated to CF9 and now have CFCACHE problems

  • June 25, 2013
  • 1 reply
  • 764 views

I have been page caching on my site for years using this code:

<cfcache timespan="#CreateTimespan(10, 0, 0, 0)#" directory="D:/websites/mysite/cache/" stripWhiteSpace="true">

This worked great -  it would keep a cached copy in the cache directory and would stay cached for 10 days.
Good stuff!!

Now I've had to switch servers and up to CF9. I still want to cache my pages but I just cant seem to get it right.

I am now using this code

<cfcache timespan="#CreateTimespan(10, 0, 0, 0)#"  useQueryString ="true" stripWhiteSpace="true">

But the pages dont cache in the cache directory and they dont seem to load faster as if they were cached.

Am I doing his right?

Am I even caching the pages?

I'd like to keep a copy in my cache directory is that possible?

This topic has been closed for replies.

1 reply

Participating Frequently
June 25, 2013

uh, you've not specified the directory attribute.  So it'll only cache in memory, not by creating cached files.

weezerboyAuthor
Inspiring
June 25, 2013

Weel when I add a directory to the tag like this, The file never gets saved to the directory. Is there some server setting that is dissallowing me to save the cached file?

<cfcache timespan="#CreateTimespan(10, 0, 0, 0)#"  useQueryString ="true" stripWhiteSpace="true" directory="D:/websites/mysite/cache/">

Additionally how can I tell if the page is cached in memory?

weezerboyAuthor
Inspiring
June 25, 2013

Well now it looks like the cfcache is bringing down my entire server!!!

So I've taken the site down..

Apparently CF9 & CFCACHE have issues

See here http://house-of-fusion.10909.n7.nabble.com/Getting-basic-CF8-CFCACHE-working-in-CF9-td23110.html

Are there any examples of how to use  CFCACHE and CF9?