Re: reason for action_cache before_filter?

Tom Fakes
Sun, 26 Nov 2006 04:20:07 -0000

My action_cache plugin already allows this type of behavior, in a
different way.

I''ve used it in an app to cache for ''admin'',
''logged in user'' and ''not
logged in user'', and my site uses themes, so the theme name is also
part of the cache key.  It is configurable to allow any available
setting to be used to influence the cache.

Check it my blog postings (http://blog.craz8.com/) for details,
script\plugin install action_cache will get the latest code.

My plugin also fixes some bugs in Rails action_cache, and does stuff
like return 304s for unchanged content.  The latest version can also
use the x-sendfile header in lighttpd and x-accel-redirect in nginx to
further reduce overhead.