From 04830d91f08574ecb59e38f2af9fbb4618a3f9b4 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Wed, 21 Oct 2015 04:06:42 -0700 Subject: [PATCH] Convert showPatrolFooter() to using WAN cache Change-Id: I55503eab91d0c64b2dcbc86257088a3eac52a2a1 --- includes/page/Article.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.20.1