Commit live hack from wmf-deployment r53208: skip user cache invalidation if we're...
authorBrion Vibber <brion@users.mediawiki.org>
Mon, 14 Sep 2009 21:28:50 +0000 (21:28 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Mon, 14 Sep 2009 21:28:50 +0000 (21:28 +0000)
includes/User.php

index 3d4fdac..86e9dff 100644 (file)
@@ -1679,6 +1679,9 @@ class User {
         * for reload on the next hit.
         */
        function invalidateCache() {
+               if( wfReadOnly() ) {
+                       return;
+               }
                $this->load();
                if( $this->mId ) {
                        $this->mTouched = self::newTouchedTimestamp();