Skip to main content
Inspiring
Jun 25, 2013 3:25 AM UTC
Question

Migrated to CF9 and now have CFCACHE problems

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 is closed to new replies. Start a new post to keep the conversation going.

3 replies

Participating Frequently
Jun 25, 2013 8:09 AM UTC

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

Translate
weezerboyAuthor
Inspiring
Jun 25, 2013 1:17 PM UTC

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?

Translate
weezerboyAuthor
Inspiring
Jun 25, 2013 7:03 PM UTC

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?

Translate