Chris Olsen
2008-Jun-02 22:08 UTC
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. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Joshua Abbott
2008-Jun-02 22:17 UTC
Re: Where are the cached files stored on the production serv
I believe cached files are stored in the public directory. -- Josh Chris Olsen 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.-- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Chris Olsen
2008-Jun-02 22:24 UTC
Re: Where are the cached files stored on the production serv
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. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Joshua Abbott
2008-Jun-02 22:49 UTC
Re: Where are the cached files stored on the production serv
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 Olsen 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.-- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---