summaryrefslogtreecommitdiff
path: root/app/services
diff options
context:
space:
mode:
authorKamil Trzciński <ayufan@ayufan.eu>2018-01-06 13:51:06 +0000
committerKamil Trzciński <ayufan@ayufan.eu>2018-01-06 13:51:06 +0000
commita7a7f8b15968418bf52d91341588f1c573f412c3 (patch)
tree787f81c62ca03677798cd1fa9adf037b326f5c91 /app/services
parent6d972724d426938a0bfd6744dc6464ec5f7e17f9 (diff)
parentff5124ed6ecb2f20841e535b3aaa3b0d230f920f (diff)
downloadgitlab-ce-a7a7f8b15968418bf52d91341588f1c573f412c3.tar.gz
Merge branch '41249-clearing-the-cache' into 'master'
Resolve "Clearing the cache" Closes #41249 See merge request gitlab-org/gitlab-ce!16067
Diffstat (limited to 'app/services')
-rw-r--r--app/services/reset_project_cache_service.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/services/reset_project_cache_service.rb b/app/services/reset_project_cache_service.rb
new file mode 100644
index 00000000000..a162a6eedb9
--- /dev/null
+++ b/app/services/reset_project_cache_service.rb
@@ -0,0 +1,5 @@
+class ResetProjectCacheService < BaseService
+ def execute
+ @project.increment!(:jobs_cache_index)
+ end
+end