From: River Tarnell Date: Sun, 17 Jul 2005 19:34:58 +0000 (+0000) Subject: purge file cache in invalidateCache X-Git-Tag: 1.5.0beta4~107 X-Git-Url: http://git.cyclocoop.org///%22%40url%40//%22?a=commitdiff_plain;h=2ab29f7450496d914aff22c40afcd47e1d3ca680;p=lhc%2Fweb%2Fwiklou.git purge file cache in invalidateCache --- diff --git a/includes/Title.php b/includes/Title.php index b94b33ae73..ce8847bfd8 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -1170,6 +1170,8 @@ class Title { * @access public */ function invalidateCache() { + global $wgUseFileCache; + if ( wfReadOnly() ) { return; } @@ -1184,6 +1186,12 @@ class Title { 'page_title' => $this->getDBkey() ), 'Title::invalidateCache' ); + + if ($wgUseFileCache) { + $cache = new CacheManager($this); + @unlink($cache->fileCacheName()); + } + return $success; }