Remove negative caching from Revision::getContentInternal
authorJackmcbarn <jackmcbarn@gmail.com>
Tue, 14 Oct 2014 00:48:46 +0000 (20:48 -0400)
committerJackmcbarn <jackmcbarn@gmail.com>
Tue, 14 Oct 2014 00:50:19 +0000 (20:50 -0400)
Negative caching in Revision::getContent can cause race conditions, so
stop doing it.

Bug: 71545
Change-Id: Iac32b2d4f90c4c1ce37820288f757e47b6d895e7

includes/Revision.php

index 5b39a41..e81ed75 100644 (file)
@@ -1060,8 +1060,6 @@ class Revision implements IDBAccessObject {
                                $format = $this->getContentFormat();
 
                                $this->mContent = $handler->unserializeContent( $this->mText, $format );
-                       } else {
-                               $this->mContent = false; // negative caching!
                        }
                }