From: Aaron Schulz Date: Wed, 21 Oct 2015 11:06:42 +0000 (-0700) Subject: Convert showPatrolFooter() to using WAN cache X-Git-Tag: 1.31.0-rc.0~9311^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=commitdiff_plain;h=04830d91f08574ecb59e38f2af9fbb4618a3f9b4;p=lhc%2Fweb%2Fwiklou.git Convert showPatrolFooter() to using WAN cache Change-Id: I55503eab91d0c64b2dcbc86257088a3eac52a2a1 --- diff --git a/includes/page/Article.php b/includes/page/Article.php index 4fdaea12ed..43b1a476a3 100644 --- a/includes/page/Article.php +++ b/includes/page/Article.php @@ -1075,7 +1075,6 @@ class Article implements Page { $outputPage = $this->getContext()->getOutput(); $user = $this->getContext()->getUser(); - $cache = wfGetMainCache(); $rc = false; if ( !$this->getTitle()->quickUserCan( 'patrol', $user ) @@ -1100,7 +1099,8 @@ class Article implements Page { } // Check for cached results - $key = wfMemcKey( 'NotPatrollablePage', $this->getTitle()->getArticleID() ); + $key = wfMemcKey( 'unpatrollable-page', $this->getTitle()->getArticleID() ); + $cache = ObjectCache::getMainWANInstance(); if ( $cache->get( $key ) ) { return false; }