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/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/4357d49cd95b8d273b5a0742d7419882%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment