I want to cache an action and I want it to be different depending on a request param ('type').
How can I do that? I want that not only the rendering will be cached, but also the calculation and the DB requests (most of the action itself)
One possible solution would be to save the different results to a file and once created to redirect to a proxy actions for each type and render them, but that it overly complicated solution and maybe Rails has a better build-in solution.
Is it possible?
Thank you