Aaron Schulz has uploaded a new change for review. https://gerrit.wikimedia.org/r/250302
Change subject: Convert JobQueueDB to using the WAN cache ...................................................................... Convert JobQueueDB to using the WAN cache Change-Id: Ie5820d1439014572ca171c9303d51a8d3938ad00 --- M includes/jobqueue/JobQueueDB.php 1 file changed, 2 insertions(+), 5 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/02/250302/1 diff --git a/includes/jobqueue/JobQueueDB.php b/includes/jobqueue/JobQueueDB.php index 6ecfaf4..ed2d0fa 100644 --- a/includes/jobqueue/JobQueueDB.php +++ b/includes/jobqueue/JobQueueDB.php @@ -33,7 +33,7 @@ const MAX_JOB_RANDOM = 2147483647; // integer; 2^31 - 1, used for job_random const MAX_OFFSET = 255; // integer; maximum number of rows to skip - /** @var BagOStuff */ + /** @var WANObjectCache */ protected $cache; /** @var bool|string Name of an external DB cluster. False if not set */ @@ -48,13 +48,10 @@ * @param array $params */ protected function __construct( array $params ) { - global $wgMemc; - parent::__construct( $params ); $this->cluster = isset( $params['cluster'] ) ? $params['cluster'] : false; - // Make sure that we don't use the SQL cache, which would be harmful - $this->cache = ( $wgMemc instanceof SqlBagOStuff ) ? new EmptyBagOStuff() : $wgMemc; + $this->cache = ObjectCache::getMainWANInstance(); } protected function supportedOrders() { -- To view, visit https://gerrit.wikimedia.org/r/250302 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ie5820d1439014572ca171c9303d51a8d3938ad00 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Aaron Schulz <asch...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits