-
-
Save jotto/340593 to your computer and use it in GitHub Desktop.
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
# need to disable Rails.cache.fetch in test env | |
# and ActionController::Base.perform_caching doesnt do it | |
# from http://pivotallabs.com/users/spierson/blog/articles/818-standup-04-30-2009-perform-caching-and-rails-cache-w3c-dtds-and-ie-range-min-max | |
class BlackHoleStore | |
def logger | |
Rails.logger | |
end | |
def fetch( *args ) | |
yield | |
end | |
def read( *args ) | |
end | |
def write( *args ) | |
end | |
def delete( *args ) | |
end | |
def increment( *args ) | |
end | |
def decrement( *args ) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment