From: Siebrand Date: Mon, 7 Jan 2013 12:06:51 +0000 (+0000) Subject: Revert "Also delete the page information cache when invalidating cache of a non-exist... X-Git-Tag: 1.31.0-rc.0~21123^2 X-Git-Url: http://git.cyclocoop.org/%27.parametre_url%28%20%20%20generer_action_auteur%28%27charger_plugin%27%2C%20%27update_flux%27%29%2C%27update_flux%27%2C%20%27oui%27%29.%27?a=commitdiff_plain;h=18e8e4128026f2ed76173e48dc13b96747c11559;p=lhc%2Fweb%2Fwiklou.git 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 --- 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; }