adds a capistrano task to clear memcached easily
This commit is contained in:
12
lib/capistrano/tasks/cache.cap
Normal file
12
lib/capistrano/tasks/cache.cap
Normal 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
|
||||||
Reference in New Issue
Block a user