[JobQueue] Added aggregate empty/non-empty queue caching.
authorAaron Schulz <aschulz@wikimedia.org>
Tue, 5 Feb 2013 20:00:24 +0000 (12:00 -0800)
committerAaron Schulz <aschulz@wikimedia.org>
Thu, 21 Feb 2013 01:34:14 +0000 (17:34 -0800)
commitd0985f4f04f175b23f400ac0a1ade2f208b9f6df
tree0f177fe7200a44cd91aad6b19c04360b4658f463
parentf4e7488007e61b5f6e6566f79e5ce1db02b68e78
[JobQueue] Added aggregate empty/non-empty queue caching.

* The default class is JobQueueAggregatorMemc.
  This essentially has the logic that nextJobDB.php used.
* Also created a JobQueueAggregatorRedis class.
  This is much more efficient and more responsive.
* This can speed up calls to getQueuesWithJobs().
* Removed unused getDefaultQueuesWithJobs() function.

Change-Id: Ifb3c6c881decd643da1b662956ded69db4b39431
includes/AutoLoader.php
includes/DefaultSettings.php
includes/job/JobQueue.php
includes/job/JobQueueAggregator.php [new file with mode: 0644]
includes/job/JobQueueAggregatorMemc.php [new file with mode: 0644]
includes/job/JobQueueAggregatorRedis.php [new file with mode: 0644]
includes/job/JobQueueDB.php
includes/job/JobQueueGroup.php
maintenance/nextJobDB.php
maintenance/runJobs.php