Hi,
I realized (in development environment with caching activated) that
cleaning the action cache for the show action is not working
properly.
The caching itself works fine - but once I try to clean the cache via
the corresponding sweeper, the show action fragment does not get
swept.
Here is the relevant sweeper method:
def clear_clientcontact_cache(clientcontact)
    expire_action(:controller => ''clientcontacts'', :action
=>
''show'', :id => clientcontact.id)
  end
Here is the relevant logfile output:
[Cached fragment hit: views/localhost:3000/clientcontacts/show/1]
#this is the cached fragment
Expired fragment: views/localhost:3000/clientcontacts/1 (0.0ms)
The problem seems to be that the expired fragment does not coincidence
with the fragment the show action looks for: "views/localhost:3000/
clientcontacts/show/1" (--> "show" appears in the path)
meanwhile the
expired fragment has no "show" in the path.
Anyone knows why that happens and how I can resolve it?
Thanks for your help!
jochen
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---