dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90da6ca
)
purge file cache in invalidateCache
author
River Tarnell
<kateturner@users.mediawiki.org>
Sun, 17 Jul 2005 19:34:58 +0000
(19:34 +0000)
committer
River Tarnell
<kateturner@users.mediawiki.org>
Sun, 17 Jul 2005 19:34:58 +0000
(19:34 +0000)
includes/Title.php
patch
|
blob
|
history
diff --git
a/includes/Title.php
b/includes/Title.php
index
b94b33a
..
ce8847b
100644
(file)
--- 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;
}