Follow up to r114081; address krinkles comment
authorJeroen De Dauw <jeroendedauw@users.mediawiki.org>
Mon, 19 Mar 2012 16:14:05 +0000 (16:14 +0000)
committerJeroen De Dauw <jeroendedauw@users.mediawiki.org>
Mon, 19 Mar 2012 16:14:05 +0000 (16:14 +0000)
includes/specials/SpecialCachedPage.php

index 9bac298..9c1f882 100644 (file)
@@ -91,7 +91,7 @@ abstract class SpecialCachedPage extends SpecialPage {
                        $refreshArgs
                );
 
-               if ( $this->cacheExpiry < 1000000000 ) {
+               if ( $this->cacheExpiry < 86400 * 3650 ) {
                        $message = $this->msg(
                                'cachedspecial-viewing-cached-ttl',
                                $this->getLanguage()->formatDuration( $this->cacheExpiry )