Caching action and parameters


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.