adds a capistrano task to clear memcached easily

This commit is contained in:
kikito
2015-09-07 13:15:56 +02:00
parent d575430645
commit 12bf3856c1

View File

@@ -0,0 +1,12 @@
namespace :cache do
desc "clears the cache in the servers"
task :clear do
on roles(:app) do |role|
within release_path do
with rails_env: fetch(:rails_env) do
execute :rake, "cache:clear"
end
end
end
end
end