Created
April 11, 2012 17:45
-
-
Save rinaldifonseca/2360857 to your computer and use it in GitHub Desktop.
No Cache Store with Rails
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#lib/active_support/cache/no_store.rb | |
module ActiveSupport | |
module Cache | |
class NoStore < Store | |
def read_entry(name, options) | |
return nil | |
end | |
def write_entry(name, value, options) | |
end | |
def delete_entry(name, options) | |
end | |
end | |
end | |
end | |
then add config.cache_store = :no_store to your test.rb file. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment