Re: reason for action_cache before_filter?

Guest
Sat, 25 Nov 2006 17:07:42 -0000

About the event from the model I mean.

Guest wrote:
>
> Hmm,
>
> I''m not sure this really answered my original question, did it?
>
> Tom Fakes wrote:
>> 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.


--
Posted via http://www.ruby-forum.com/.