Skip to content

Instantly share code, notes, and snippets.

@therabidbanana
Created November 9, 2012 16:20
Show Gist options
  • Save therabidbanana/4046618 to your computer and use it in GitHub Desktop.
Save therabidbanana/4046618 to your computer and use it in GitHub Desktop.
# Our setup:
#
# $cache = Dalli::Client.new
#  Padrino.use Rack::Cache,
#    :private_headers => ['X-Content-Digest'],
#    :metastore => $cache,
#   :entitystore => "file:tmp/body",
#    :allow_revalidate => true
desc 'clears cache'
task 'cache:clear' => 'environment' do
warn "Clearing cache.... #{$cache.flush}"
warn "Removing cache.... #{`rm -rf tmp/body`}"
end
@therabidbanana
Copy link
Author

To clear our heroku caches: "heroku run rake cache:clear"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment