r6589 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r6588‎ | r6589 | r6590 >
Date:05:41, 9 December 2004
Author:vibber
Status:old
Tags:
Comment:
Remove old Wikipedia hack to expire the main page from the file cache early (because Wikipedia's main page had the current date on it). The message load prevents us from deferring message cache initialization on file cache hits
Modified paths:
  • /branches/REL1_4/phase3/includes/Article.php (modified) (history)

Diff [purge]

Index: branches/REL1_4/phase3/includes/Article.php
@@ -1956,11 +1956,6 @@
19571957 $called = true;
19581958 if($this->isFileCacheable()) {
19591959 $touched = $this->mTouched;
1960 - if( $this->mTitle->getPrefixedDBkey() == wfMsg( 'mainpage' ) ) {
1961 - # Expire the main page quicker
1962 - $expire = wfUnix2Timestamp( time() - 3600 );
1963 - $touched = max( $expire, $touched );
1964 - }
19651960 $cache = new CacheManager( $this->mTitle );
19661961 if($cache->isFileCacheGood( $touched )) {
19671962 global $wgOut;

Status & tagging log