summaryrefslogtreecommitdiff
path: root/lib/gitlab/cache.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/cache.rb')
-rw-r--r--lib/gitlab/cache.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/gitlab/cache.rb b/lib/gitlab/cache.rb
index 90a0c38ff7b..433614a3007 100644
--- a/lib/gitlab/cache.rb
+++ b/lib/gitlab/cache.rb
@@ -13,6 +13,13 @@ module Gitlab
end
end
end
+
+ # Hook for EE
+ def delete(key)
+ Rails.cache.delete(key)
+ end
end
end
end
+
+Gitlab::Cache.prepend_mod