search for: cache_act

Displaying 3 results from an estimated 3 matches for "cache_act".

Did you mean: cache_add
2008 Jan 23
0
Action caching...
All, I am running Merb 0.5.0. Is there a way to specify an expiration time on an action cache, besides physically calling expire_action ? I have been looking at the code and I was not able to find support for that Something like cache_action( :fred => 30*60, :blee => 60*60 ) would expire fred in 30 min and blee in 1 hour... Any tips on how to achieve that ? Thanks, Fernand -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/merb-devel/attachments/20080123/27...
2007 Mar 22
1
doable ? action caching if anonymous, fragment caching if logged in ?
Hi All, I''d like to use different caching strategies based on the visitor status - anonymous => action caching - logged in => fragment caching Is that doable? Where should I start? TIA Alain --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this
2007 Nov 21
1
Problem with route defaults and caching
...ap.connect ''stats'', :controller => ''stats'', :action => ''index'' map.connect ''stats/:type'', :controller => ''stats'', :action => ''index'', :defaults => {:type => nil} When I use cache_action, the :type is never added to the url for caching. All the cached names are simply ''/stats'' even if a :type is defined. If I remove the first route, leaving just this... map.connect ''stats/:type'', :controller => ''stats'', :action => ...