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 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:
used as backends for Action Controller caching.
“/path/to/cache/directory”
“druby://localhost:9192”
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.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs