Re: reason for action_cache before_filter?

Tom Fakes
Sat, 25 Nov 2006 01:02:09 -0000

The whole point of the Action Cache is to avoid executing the action.

With your modifications, the action is always executed.  The purpose of
the before_filter is to send the cached result instead of executing the
action - the ''false'' line tells Rails to stop executing
filters and not
call the action method.  If you remove the before_filter code, the
action will always execute.