(bug 40899) Cache resources for anonymous users
authorJakub Vrana <jakub@vrana.cz>
Tue, 9 Oct 2012 22:20:05 +0000 (15:20 -0700)
committerCatrope <roan.kattouw@gmail.com>
Thu, 11 Oct 2012 01:38:23 +0000 (18:38 -0700)
Changes mTouched for anonymous users to '1' because '0' is treated as 'now' by wfTimestamp()

Change-Id: If0d77f72dc776c4709a1e5da360fbd6273178b29

includes/User.php

index 2afe326..f80319d 100644 (file)
@@ -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