caching with cf_accelerate

ColdFusion Add comments

In my quest for performance increases and saving on server resources I’m trying out Brandon Purcell’s cf_accelerate caching solution on my blog here.

It took a couple of attempts to get it working as i wanted, simply wrapping the entire page in the tags worked great, but when i logged in to create new posts i still saw the cached version - not good! It defaults to using a primary key of the query string and a secondary key of ‘default’, so at the moment i’ve got one cf_accelerate around the articles (using the query string as the PK and a named secondary key of ‘articles’) and a second around the ‘posts by subject’ pod with a similar call, there’s a third one wrapped round the RSS output generator too - just to reduce the number of Db hits occuring when you lot hit my feeds. It needed another piece of custom fusebox lexicon to integrate it into my code base so that’ll be another entry at some point.

What’s cool about cf_accelerate is that Brandon supplies a cool ‘Cache Manager’ app so you can see what/where and when caching is occuring and you can view cached info, purge it or set up skimmers to refresh cached info

6 Responses to “caching with cf_accelerate”

  1. cfcoder Says:

    It’s difficult to implement it in fusebox 3 applications? If it’s not could be a hit!! :-)

  2. John B Says:

    I don’t see why it wouldn’t work with fb3 applications, since there’s still a ColdFusion cfswitch block you wouldn’t need the custom verb like i’m using for fb4.1. You could try wrapping a cf_accelerate round a few cfincludes. Since there’s no content variable in fb3 then you probably would only need to let the tag use the default for primary key and secondary key.

  3. Daniel Says:

    I used cf_accelerate in fb3 - as you mentioned between cfswitch-tags - worked great.

    Could explain how you implemented it in fb4/fb5?

  4. johnb Says:

    I’d written a custom Fusebox verb which called cf_accelerate for me - this is something which would work in Fusebox 4 as well as the upcoming Fusebox 5 release. I’m not sure where i’d have put the file though…

  5. Aaron Longnion Says:

    Is the ‘cache manager’ available anywhere to download online? I can’t seem to find a download. TIA!

  6. Brandon Purcell Says:

    You can find the admin here http://www.bpurcell.org/blog/index.cfm?mode=entry&entry=971

Leave a Reply

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in