diff options
Diffstat (limited to 'lib/tasks/cache.rake')
| -rw-r--r-- | lib/tasks/cache.rake | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/lib/tasks/cache.rake b/lib/tasks/cache.rake index a95a3455a4a..125a3d560d6 100644 --- a/lib/tasks/cache.rake +++ b/lib/tasks/cache.rake @@ -1,7 +1,7 @@ namespace :cache do namespace :clear do REDIS_CLEAR_BATCH_SIZE = 1000 # There seems to be no speedup when pushing beyond 1,000 - REDIS_SCAN_START_STOP = '0' # Magic value, see http://redis.io/commands/scan + REDIS_SCAN_START_STOP = '0'.freeze # Magic value, see http://redis.io/commands/scan desc "GitLab | Clear redis cache" task redis: :environment do @@ -21,13 +21,8 @@ namespace :cache do end end - desc "GitLab | Clear database cache (in the background)" - task db: :environment do - ClearDatabaseCacheWorker.perform_async - end - - task all: [:db, :redis] + task all: [:redis] end - task clear: 'cache:clear:all' + task clear: 'cache:clear:redis' end |
