From f6d65e533c62f6deb21342d4901ece24497b433e Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Thu, 4 Jun 2015 07:31:04 +0200 Subject: Update to MediaWiki 1.25.1 --- includes/parser/CacheTime.php | 26 +++----------------------- 1 file changed, 3 insertions(+), 23 deletions(-) (limited to 'includes/parser/CacheTime.php') diff --git a/includes/parser/CacheTime.php b/includes/parser/CacheTime.php index 94abc266..950c0d46 100644 --- a/includes/parser/CacheTime.php +++ b/includes/parser/CacheTime.php @@ -34,8 +34,7 @@ class CacheTime { public $mVersion = Parser::VERSION, # Compatibility check $mCacheTime = '', # Time when this object was generated, or -1 for uncacheable. Used in ParserCache. - $mCacheExpiry = null, # Seconds after which the object should expire, use 0 for uncachable. Used in ParserCache. - $mContainsOldMagic, # Boolean variable indicating if the input contained variables like {{CURRENTDAY}} + $mCacheExpiry = null, # Seconds after which the object should expire, use 0 for uncacheable. Used in ParserCache. $mCacheRevisionId = null; # Revision ID that was parsed /** @@ -45,21 +44,6 @@ class CacheTime { return wfTimestamp( TS_MW, $this->mCacheTime ); } - /** - * @return bool - */ - public function containsOldMagic() { - return $this->mContainsOldMagic; - } - - /** - * @param bool $com - * @return bool - */ - public function setContainsOldMagic( $com ) { - return wfSetVar( $this->mContainsOldMagic, $com ); - } - /** * setCacheTime() sets the timestamp expressing when the page has been rendered. * This does not control expiry, see updateCacheExpiry() for that! @@ -123,7 +107,7 @@ class CacheTime { if ( $this->mCacheTime < 0 ) { return 0; - } // old-style marker for "not cachable" + } // old-style marker for "not cacheable" $expire = $this->mCacheExpiry; @@ -133,12 +117,8 @@ class CacheTime { $expire = min( $expire, $wgParserCacheExpireTime ); } - if ( $this->containsOldMagic() ) { //compatibility hack - $expire = min( $expire, 3600 ); # 1 hour - } - if ( $expire <= 0 ) { - return 0; // not cachable + return 0; // not cacheable } else { return $expire; } -- cgit v1.2.3-54-g00ecf