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
Hi All,
I’d like to use different caching strategies based on the visitor status
Is that doable? Where should I start?
TIA
Alain
SOLVED
The action_cache plugin
http://agilewebdevelopment.com/plugins/action_cache
adds a methods that enables conditional action caching :
class ApplicationController < ActionController::Base
…
def cache_action?(action_name)
!admin?
end
...
end
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs