From 2ab29f7450496d914aff22c40afcd47e1d3ca680 Mon Sep 17 00:00:00 2001 From: River Tarnell Date: Sun, 17 Jul 2005 19:34:58 +0000 Subject: [PATCH] purge file cache in invalidateCache --- includes/Title.php | 8 ++++++++ 1 file changed, 8 insertions(+) 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; } -- 2.20.1