Re: caches_action does not go off the entire URL

5 views
Skip to first unread message

Edwin Rozario

unread,
May 25, 2015, 6:21:06 PM5/25/15
to rubyonra...@googlegroups.com
Hi David

I have the same issue. It seems you have to use a Proc with the query
params.

Example here:
http://stackoverflow.com/questions/1988658/rails-action-caching-with-querystring-parameters

David Clements wrote in post #34371:
> I am trying to use caches_action and the agile book says that it is
> keyed
> off the URL, however it does not seem to pick up the URL parameters.
>
> http://localhost:3000/controller/action/id?foo=bar
> and
> http://localhost:3000/controller/action/id?foo=foobar
>
> Returns the same page.
>
> Anyone looked into how to add URL parameters to the cached key? Also,
> where do those file get stored?
>
> Thanks
>
> Dave

--
Posted via http://www.ruby-forum.com/.
Reply all
Reply to author
Forward
0 new messages