Tuesday, August 6, 2013

Rails action caching with querystring parameters

We can cache a particular action with its query string parameters in rails as follows :

caches_action :action_name, :cache_path => Proc.new { |c| c.params }

No comments:

Post a Comment