X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fjobqueue%2Fjobs%2FRefreshLinksJob.php;h=424fcecb2ddf2eef377996b3e60b68a4dfa6ce77;hp=9f3550f269b3987d8b7f0b70a0bab6eef1fa1f2d;hb=3df3b575c6617df64ec98533cc7141bd2314e274;hpb=ed1966c1ed85f7ec713dc252f8c526b8f0e42505 diff --git a/includes/jobqueue/jobs/RefreshLinksJob.php b/includes/jobqueue/jobs/RefreshLinksJob.php index 9f3550f269..424fcecb2d 100644 --- a/includes/jobqueue/jobs/RefreshLinksJob.php +++ b/includes/jobqueue/jobs/RefreshLinksJob.php @@ -207,7 +207,7 @@ class RefreshLinksJob extends Job { if ( $page->getTouched() >= $this->params['rootJobTimestamp'] || $opportunistic ) { // Cache is suspected to be up-to-date. As long as the cache rev ID matches // and it reflects the job's triggering change, then it is usable. - $parserOutput = ParserCache::singleton()->getDirty( $page, $parserOptions ); + $parserOutput = $services->getParserCache()->getDirty( $page, $parserOptions ); if ( !$parserOutput || $parserOutput->getCacheRevisionId() != $revision->getId() || $parserOutput->getCacheTime() < $skewedTimestamp @@ -234,7 +234,7 @@ class RefreshLinksJob extends Job { && $parserOutput->isCacheable() ) { $ctime = wfTimestamp( TS_MW, (int)$start ); // cache time - ParserCache::singleton()->save( + $services->getParserCache()->save( $parserOutput, $page, $parserOptions, $ctime, $revision->getId() ); }