Forget this, I was too eager to hit the send button.
//jarkko
On 25.4.2005, at 16:22, Jarkko Laine wrote:
> I''m using a cache sweeper class [1] to take care of some pretty
> complex sweeping. However, there is a problem with the current
> implementation. Namely, the sweeper gets called only when an action
> named in cache_sweeper is called using GET. As many methods where
> sweeper would be useful are using postback to send the form to the
> same action, this causes the cache to get swept when the edit form is
> loaded, not when the actual editing in the db is happening.
>
> My idea to solve this would be to accept an array as an item in the
> :only parameter array. It would then consist of the name of the action
> + the method that should invoke the sweeper. That way the developer
> could select if the sweeper gets called on :get, :post or perhaps
> both.
>
> I don''t know, maybe there already exists a solution for this.
However,
> all that I can tell at the moment is that when posting a postback
> form, the sweeper is not called.
>
> //jarkko
>
> [1]
> http://rails.rubyonrails.com/classes/ActionController/Caching/
> Sweeping.html
>
> --
> Jarkko Laine
> http://jlaine.net
> http://odesign.fi_______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
--
Jarkko Laine
http://jlaine.net
http://odesign.fi
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails