How to cache render :json

Posted by ash34 on Stack Overflow See other posts from Stack Overflow or by ash34
Published on 2010-05-12T06:39:17Z Indexed on 2010/05/12 6:44 UTC
Read the original article Hit count: 325

Filed under:

Hi,

I have a controller index action which returns json output.

render :json => my_array.to_json

What type of caching do I have to use here. Does 'page caching' make sense for this.

Or do I have to do action caching like below

caches_action :index

thanks, ash

© Stack Overflow or respective owner

Related posts about ruby-on-rails