diff options
Diffstat (limited to 'lib/gitlab/github_import/page_counter.rb')
-rw-r--r-- | lib/gitlab/github_import/page_counter.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/gitlab/github_import/page_counter.rb b/lib/gitlab/github_import/page_counter.rb index 3b4fd42ba2a..3face4c794b 100644 --- a/lib/gitlab/github_import/page_counter.rb +++ b/lib/gitlab/github_import/page_counter.rb @@ -26,6 +26,10 @@ module Gitlab def current Gitlab::Cache::Import::Caching.read_integer(cache_key) || 1 end + + def expire! + Gitlab::Cache::Import::Caching.expire(cache_key, 0) + end end end end |