From bb1a41a796b215f69f0bb0f358db3ce27fcba530 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Mon, 14 Sep 2009 21:28:50 +0000 Subject: [PATCH] Commit live hack from wmf-deployment r53208: skip user cache invalidation if we're in read-only mode; it's likely to fail and cause more confusion than not doing the invalidation. --- includes/User.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/includes/User.php b/includes/User.php index 3d4fdac846..86e9dffc58 100644 --- a/includes/User.php +++ b/includes/User.php @@ -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(); -- 2.20.1