http://www.mediawiki.org/wiki/Special:Code/MediaWiki/56335
Revision: 56335
Author: brion
Date: 2009-09-14 21:28:50 +0000 (Mon, 14 Sep 2009)
Log Message:
-----------
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.
Modified Paths:
--------------
trunk/phase3/includes/User.php
Modified: trunk/phase3/includes/User.php
===================================================================
--- trunk/phase3/includes/User.php 2009-09-14 21:26:04 UTC (rev 56334)
+++ trunk/phase3/includes/User.php 2009-09-14 21:28:50 UTC (rev 56335)
@@ -1679,6 +1679,9 @@
* for reload on the next hit.
*/
function invalidateCache() {
+ if( wfReadOnly() ) {
+ return;
+ }
$this->load();
if( $this->mId ) {
$this->mTouched = self::newTouchedTimestamp();
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs