# Caches\_action for ajax call

**URL:** <https://www.ruby-forum.com/t/caches-action-for-ajax-call/165823>\
**Category:** Rails\
**Created:** [April 17, 2009, 9:42pm UTC](https://www.ruby-forum.com/t/caches-action-for-ajax-call/165823 "2009-04-17T21:42:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mekdigital](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/919ad9/32.png) [@mekdigital](https://www.ruby-forum.com/u/mekdigital)\
**Post date:** [April 17, 2009, 9:42pm UTC](https://www.ruby-forum.com/t/caches-action-for-ajax-call/165823/1 "2009-04-17T21:42:06Z")

</div>

Hi all!  
I have an action called app/xxx that correctly creates cache when  
directly  
hit, not when invoked by an ajax call, but the ajax call will return  
the  
cached version of the action when cache is created. Should I change  
approach  
or do I have any parameter to pass to remote\_function to trigger  
chaching?

I’m using remote\_function(:update =\> “drawer-content”, :url =\>  
drawer\_content\_path)

thx

–  
Emanuele T.
