Caching js

Hi all,

I want to cache the results of a rjs file as a fragment.
Any one know how?


Keynan P. wrote:

Of course, you can put:

cache do

around the call to render the rjs.

If the rjs template is called implicitly, you can just make it explicit:

cache do
render :rjs #or whatever you call to render the template

Hope that’s helpful