rake task to clear redis cache

master
Dmitriy Zaporozhets 2013-03-31 23:45:58 +03:00
parent a0bca5b71d
commit 2a6b4f965e
1 changed files with 6 additions and 0 deletions

6
lib/tasks/cache.rake Normal file
View File

@ -0,0 +1,6 @@
namespace :cache do
desc "GITLAB | Clear redis cache"
task :clear => :environment do
Rails.cache.clear
end
end