Forum: Ruby on Rails Caching action and parameters

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
bingbangboum (Guest)
on 2008-11-10 20:50
(Received via mailing list)
Hello,

I have a controller called user with an index action wich list all
users.
I can specify the order in the url like this /index/ordering/name/
increasing.
I have a lot of user so i use a params[:page] to list them like this /
index/2.
All work find.
Next i want to cache my index action so in my user controller i put :


Code :   - fold - unfold

   1. caches_action :index

Troubles arrive.
When i go to /index a user.cache file is created.
When i go to /index/2 a new cache file is created.
But when i go to /index/ordering/name/increasing ,none file is
created , the server give me the user.cache file created before , and
my users are not ordered.

Thanks.
This topic is locked and can not be replied to.