Is it possible to delete all rails cache? how?
'rake tmp:clear' doesn't work.

config/envinroments/production.rb:
...
config.cache_store =:file_store, 'tmp/cache/'
...

tmp/cache is empty, but page is still cached.

--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Search Discussions

  • Roy Situmorang at Oct 25, 2011 at 5:49 am
    Page cache is standard behaviour of "production" environment.
    Well, I suggest you to change the environment to "development".
    On Tue, Oct 25, 2011 at 11:46 AM, Luk Mus wrote:

    Is it possible to delete all rails cache? how?
    'rake tmp:clear' doesn't work.

    config/envinroments/production.rb:
    ...
    config.cache_store =:file_store, 'tmp/cache/'
    ...

    tmp/cache is empty, but page is still cached.

    --
    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@googlegroups.com.
    To unsubscribe from this group, send email to
    rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group at
    http://groups.google.com/group/rubyonrails-talk?hl=en.
    --
    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@googlegroups.com.
    To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
  • Colin Law at Oct 25, 2011 at 7:08 am

    On 25 October 2011 05:46, Luk Mus wrote:
    Is it possible to delete all rails cache? how?
    'rake tmp:clear' doesn't work.

    config/envinroments/production.rb:
    ...
    config.cache_store =:file_store, 'tmp/cache/'
    ...

    tmp/cache is empty, but page is still cached.
    Are you sure it is not your browser that is caching it?

    Colin
    --
    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@googlegroups.com.
    To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.


    --
    gplus.to/clanlaw

    --
    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@googlegroups.com.
    To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
  • Jeffrey L. Taylor at Oct 25, 2011 at 3:51 pm

    Quoting Luk Mus <lists@ruby-forum.com>:
    Is it possible to delete all rails cache? how?
    'rake tmp:clear' doesn't work.

    config/envinroments/production.rb:
    ...
    config.cache_store =:file_store, 'tmp/cache/'
    ...
    Try restarting the Rails server, Webrick, Apache, whatever.

    HTH,
    Jeffrey

    --
    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@googlegroups.com.
    To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
  • Brandon Black at Oct 28, 2011 at 11:50 pm
    Sweepers:
    http://guides.rubyonrails.org/caching_with_rails.html#sweepers

    If you do just want to blow away everything, you can iterate through
    the keys in the cache store and explicitly delete each one. Probably
    not necessary though.
    If the problem you're having is with static assets, the other comment
    about this being a client-side caching issue might be valid.
    On Oct 24, 9:46 pm, Luk Mus wrote:
    Is it possible to delete all rails cache? how?
    'rake tmp:clear' doesn't work.

    config/envinroments/production.rb:
    ...
    config.cache_store =:file_store, 'tmp/cache/'
    ...

    tmp/cache is empty, but page is still cached.

    --
    Posted viahttp://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@googlegroups.com.
    To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedOct 25, '11 at 4:46a
activeOct 28, '11 at 11:50p
posts5
users5
websiterubyonrails.org
irc#RubyOnRails

People

Translate

site design / logo © 2022 Grokbase