Ar Chron wrote:
> Have you determined what
> 
>    %r{.*}
> 
> evaluates to in the context of your Sweeper?

%r{.*} will delete absoloutly everything in my cache, i think i found my 
error after reading this forum thread 
http://www.ruby-forum.com/topic/145163#643061 .

In my controller i had:
phrase_sweeper :phrase_sweeper, :only => [:create, :update, :destroy]

when i was actually using an action called :rank_up, for some reason i 
just assumed if i was updating a model, the :update action would cover 
it, although i wasn't using :update in my controller. I've yet to try 
the changes, but i'll let you know the outcome. The confusing part was 
that the sweeper gets called no mater what, but the expire_fragment only 
works on the specified actions.
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to