Created
November 9, 2012 16:20
-
-
Save therabidbanana/4046618 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# Our setup: | |
# | |
# $cache = Dalli::Client.new | |
# Padrino.use Rack::Cache, | |
# :private_headers => ['X-Content-Digest'], | |
# :metastore => $cache, | |
# :entitystore => "file:tmp/body", | |
# :allow_revalidate => true |
This file contains hidden or 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
desc 'clears cache' | |
task 'cache:clear' => 'environment' do | |
warn "Clearing cache.... #{$cache.flush}" | |
warn "Removing cache.... #{`rm -rf tmp/body`}" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To clear our heroku caches: "heroku run rake cache:clear"