diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2009-02-22 13:37:51 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2009-02-22 13:37:51 +0100 |
commit | b9b85843572bf283f48285001e276ba7e61b63f6 (patch) | |
tree | 4c6f4571552ada9ccfb4030481dcf77308f8b254 /includes/BagOStuff.php | |
parent | d9a20acc4e789cca747ad360d87ee3f3e7aa58c1 (diff) |
updated to MediaWiki 1.14.0
Diffstat (limited to 'includes/BagOStuff.php')
-rw-r--r-- | includes/BagOStuff.php | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/includes/BagOStuff.php b/includes/BagOStuff.php index 92311329..572dca6c 100644 --- a/includes/BagOStuff.php +++ b/includes/BagOStuff.php @@ -475,8 +475,19 @@ class MediaWikiBagOStuff extends SqlBagOStuff { function _fromunixtime($ts) { return $this->_getDB()->timestamp($ts); } + /*** + * Note -- this should *not* check wfReadOnly(). + * Read-only mode has been repurposed from the original + * "nothing must write to the database" to "users should not + * be able to edit or alter anything user-visible". + * + * Backend bits like the object cache should continue + * to work in this mode, otherwise things will blow up + * like the message cache failing to save its state, + * causing long delays (bug 11533). + */ function _readonly(){ - return wfReadOnly(); + return false; } function _strencode($s) { return $this->_getDB()->strencode($s); |