Forum: Ruby on Rails Action Caching - Where'd the files go?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Adff397780b7982a56371acc6f0985e6?d=identicon&s=25 Caleb Jones (Guest)
on 2007-01-10 20:16
I have a rails app. that does both page and action caching.  In my
development environment this works flawlessly.  However, when I deploy
to my server, the action cache files do not appear in the
tmp/cache/SERVER_NAME/CONTROLLER/ACTION directories.  I also checked the
system level /tmp directory and do not see the files there.  What's
weird is that the logs indicate that action caching is working (filter
chains are halting and the code is not executed).  My worry is that it
somehow defaulted back to some sort of memory caching mechanism (which
would be bad as there is a potential for a lot of action cache files).

Does anyone know of alternative fall-backs or settings that would cause
Rails to place the action cache files somewhere other than in the
Adff397780b7982a56371acc6f0985e6?d=identicon&s=25 Caleb Jones (Guest)
on 2007-01-12 18:32
Anyone have any insight on this?
91308e9bc88cb069fd1bcf88e910d042?d=identicon&s=25 Nick Snels (nicksnels)
on 2007-01-12 21:45
Hi Caleb,

which webserver are you using? It could have something to do with the
fact that the webserver doesn't have the rights to write into
tmp/cache/SERVER_NAME/CONTROLLER/ACTION. Check the rights of the
tmp/cache folder and check the logs of your webserver. Let me know if it
works out.

Kind regards,

Nick Snels
Compare and review Rails hosting plans
Ef0db53920b243d6758c2f6b1306df0d?d=identicon&s=25 Steve Ross (cwd)
on 2007-01-19 16:29
(Received via mailing list)
As far as I know, action caches go to memory and are cleared by a server
restart. Anyone else know different?

Cody Skidmore-2 wrote:
View this message in context:
Sent from the RubyOnRails Users mailing list archive at
F01c3ff32fee35d911e81c172a005012?d=identicon&s=25 Tom Fakes (Guest)
on 2007-01-19 16:29
(Received via mailing list)
Different versions of Rails have different default locations for the
Action Cache.  If your production server is using an older Rails Gem,
then the action cache could be stored in memory.

Newer Rails versions use the RAILS_ROOT/tmp/cache directory by default.

I don't know when this changed.

You can configure to use the File system instead of using the default
location in environment.rb:

  ActionController::Base.fragment_cache_store = :file_store,
This topic is locked and can not be replied to.