summaryrefslogtreecommitdiff
path: root/lib/tasks/cache.rake
Commit message (Collapse)AuthorAgeFilesLines
* Allow `rake cache:clear` clearing pipeline status cache44582-clear-pipeline-status-cacheLin Jen-Shin2018-04-101-9/+14
| | | | | | | | | * Use the correct key prefix * Clear old cache keys TODO: At some point we could remove clearing old cache keys.
* Support multiple Redis instances based on queue typePaul Charlton2017-07-111-2/+2
|
* Remove the ClearDatabaseCacheWorkerNick Thomas2017-04-211-6/+1
|
* Don’t exclude some file in lib from rubocopDouwe Maan2017-02-231-1/+1
|
* Stop clearing the database cache on rake cache:clearNick Thomas2016-10-221-1/+1
|
* Add markdown cache columns to the database, but don't use them yetNick Thomas2016-10-071-16/+27
| | | | | | | | | | | | This commit adds a number of _html columns and, with the exception of Note, starts updating them whenever the content of their partner fields changes. Note has a collision with the note_html attr_accessor; that will be fixed later A background worker for clearing these cache columns is also introduced - use `rake cache:clear` to set it off. You can clear the database or Redis caches separately by running `rake cache:clear:db` or `rake cache:clear:redis`, respectively.
* Put CACHE_NAMESPACE in the Gitlab::Redis moduleJacob Vosmaer2016-04-071-1/+1
|
* Add Gitlab::Redis connection poolJacob Vosmaer2016-04-041-12/+13
|
* Parse config/resque.yml in one place onlyJacob Vosmaer2016-03-091-3/+3
|
* Batch size >1000 does not pay offcomment-batch-sizeJacob Vosmaer2016-02-251-1/+1
| | | | | | | | | | | | | | We did a small experiment to see how a full scan of the Redis keys on gitlab.com speeds up as we increase the batch size. The values on the right are time in seconds for a full scan (no delete operations). count: 10); 284.500529021 count: 100); 86.21216934 count: 1_000); 60.931676195 count: 10_000); 60.96355610 count: 100_000); 62.378172541 It looks like 1,000 is a good number.
* Improve readability of 'rake cache:clear' coderefactor-scanJacob Vosmaer2016-02-191-6/+5
|
* Use SCAN during 'rake cache:clear'cache-clearJacob Vosmaer2016-02-181-4/+15
| | | | | | This allows 'rake cache:clear' to delete millions of keys without choking. It requires Redis 2.8.0 or newer but we needed that already anyway.
* Replace GITLAB with GitLab in rake task descriptionsDmitriy Zaporozhets2015-06-231-1/+1
|
* Patch `rake cache:clear` for large amounts of keysJacob Vosmaer2014-06-201-1/+6
|
* rake task to clear redis cacheDmitriy Zaporozhets2013-03-311-0/+6