We can cache a particular action with its query string parameters in rails as follows :
caches_action :action_name, :cache_path => Proc.new { |c| c.params }
caches_action :action_name, :cache_path => Proc.new { |c| c.params }
@first_name = "Anil" puts "#@
first_name
Galve" #=> "Anil Galve" @@first_name = "Anil" puts "#@@first_name Galve" #=> "
Anil Galve
" $first_name = "Anil" puts "#$first_name Galve" #=> "
Anil Galve
"