Skip to content

Instantly share code, notes, and snippets.

@rinaldifonseca
Created April 11, 2012 17:45
Show Gist options
  • Save rinaldifonseca/2360857 to your computer and use it in GitHub Desktop.
Save rinaldifonseca/2360857 to your computer and use it in GitHub Desktop.
No Cache Store with Rails
#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