summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-01-31 13:56:00 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-01-31 13:56:00 +0200
commit9119389370f4b617ec0580951ca2f02e6c9bafca (patch)
tree5e89e2bb19f349e58d751146cf4b444864f1d705 /lib
parent1672457a135f309ebe8a23ae22d3b79b91a0b480 (diff)
downloadgitlab-ci-9119389370f4b617ec0580951ca2f02e6c9bafca.tar.gz
Add clear cache task
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/tasks/cache.rake6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/tasks/cache.rake b/lib/tasks/cache.rake
new file mode 100644
index 0000000..8320b9b
--- /dev/null
+++ b/lib/tasks/cache.rake
@@ -0,0 +1,6 @@
+namespace :cache do
+ desc "GITLAB | Clear redis cache"
+ task :clear => :environment do
+ Rails.cache.clear
+ end
+end