From: Brion Vibber Date: Mon, 14 Sep 2009 21:28:50 +0000 (+0000) Subject: Commit live hack from wmf-deployment r53208: skip user cache invalidation if we're... X-Git-Tag: 1.31.0-rc.0~39733 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/cotisations/rappels.php?a=commitdiff_plain;h=bb1a41a796b215f69f0bb0f358db3ce27fcba530;p=lhc%2Fweb%2Fwiklou.git 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. --- 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();