Where are the cached files stored on the production server?

I need to delete a file, but the cached files are no longer in the tmp
folder on the production server. I don’t see them in the shared either.
I can’t even find anything with the *nix find command.

Any clues?

Thanks for the help.

I believe cached files are stored in the public directory.

– Josh

Chris O. wrote:

I need to delete a file, but the cached files are no longer in the tmp
folder on the production server. I don’t see them in the shared either.
I can’t even find anything with the *nix find command.

Any clues?

Thanks for the help.

Ooops, I should’ve been more specific. Most of my caching is done via
caches_action, not caches_page which is stored in the public dir.

Chris,

So after some digging around in the source I turned up the method
“lookup_store” for ActiveSupport::Cache.

Typing this into console got me the following:

ActiveSupport::Cache.lookup_store
=> #<ActiveSupport::Cache::MemoryStore:0x24f9c44 @data={}>

Also, the documentation in the class points out the following:

== Caching stores

All the caching stores from ActiveSupport::Caching is available to be

used as backends for Action Controller caching.

Configuration examples (MemoryStore is the default):

ActionController::Base.cache_store = :memory_store

ActionController::Base.cache_store = :file_store,

“/path/to/cache/directory”

ActionController::Base.cache_store = :drb_store,

“druby://localhost:9192”

ActionController::Base.cache_store = :mem_cache_store, “localhost”

ActionController::Base.cache_store = MyOwnStore.new(“parameter”)

So, to answer your question, your caches are being stored in memory, but
you can totally change where you want them to be stored.

Hope that helps,
– Josh

Chris O. wrote:

Ooops, I should’ve been more specific. Most of my caching is done via
caches_action, not caches_page which is stored in the public dir.