From: Jakub Vrana Date: Tue, 9 Oct 2012 22:20:05 +0000 (-0700) Subject: (bug 40899) Cache resources for anonymous users X-Git-Tag: 1.31.0-rc.0~22068 X-Git-Url: http://git.cyclocoop.org/%22.%24image2.%22?a=commitdiff_plain;h=e9ac745555d15dd6dfca094adf9d4e64a8a8ea66;p=lhc%2Fweb%2Fwiklou.git (bug 40899) Cache resources for anonymous users Changes mTouched for anonymous users to '1' because '0' is treated as 'now' by wfTimestamp() Change-Id: If0d77f72dc776c4709a1e5da360fbd6273178b29 --- diff --git a/includes/User.php b/includes/User.php index 2afe32639b..f80319d085 100644 --- a/includes/User.php +++ b/includes/User.php @@ -893,7 +893,7 @@ class User { if( $loggedOut !== null ) { $this->mTouched = wfTimestamp( TS_MW, $loggedOut ); } else { - $this->mTouched = '0'; # Allow any pages to be cached + $this->mTouched = '1'; # Allow any pages to be cached } $this->mToken = null; // Don't run cryptographic functions till we need a token