From 18e8e4128026f2ed76173e48dc13b96747c11559 Mon Sep 17 00:00:00 2001 From: Siebrand Date: Mon, 7 Jan 2013 12:06:51 +0000 Subject: [PATCH] Revert "Also delete the page information cache when invalidating cache of a non-existing page" Breaks LiquidThreads per bug 43693 and worsens bug 37209. This reverts commit b3ff701cba6578ff0994ef3b42efcb1ba4eac9cd --- includes/Title.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/includes/Title.php b/includes/Title.php index f045f74a57..a20367dcef 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -4476,8 +4476,11 @@ class Title { HTMLFileCache::clearFileCache( $this ); // Clear page info. - $memcKey = wfMemcKey( 'infoaction', $this->getPrefixedText(), $this->getLatestRevID() ); - $success = $success && $wgMemc->delete( $memcKey ); + $revision = WikiPage::factory( $this )->getRevision(); + if( $revision !== null ) { + $memcKey = wfMemcKey( 'infoaction', $this->getPrefixedText(), $revision->getId() ); + $success = $success && $wgMemc->delete( $memcKey ); + } return $success; } -- 2.20.1