Forum: Ruby on Rails Caching action and parameters

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

I have a controller called user with an index action wich list all
I can specify the order in the url like this /index/ordering/name/
I have a lot of user so i use a params[:page] to list them like this /
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.

This topic is locked and can not be replied to.