Tweaked WikiPage::clear() comment a bit
authorAaron Schulz <aschulz@wikimedia.org>
Sun, 17 Nov 2013 19:40:42 +0000 (11:40 -0800)
committerBryanDavis <bdavis@wikimedia.org>
Mon, 18 Nov 2013 19:05:45 +0000 (19:05 +0000)
Change-Id: I9ec27b575de5547d1ab0569c4c2cdd1307f8307a

includes/WikiPage.php

index d3743b5..6c2c6ad 100644 (file)
@@ -245,7 +245,8 @@ class WikiPage implements Page, IDBAccessObject {
                $this->mIsRedirect = false;
                $this->mLatest = false;
                // Bug 57026: do not clear mPreparedEdit since prepareTextForEdit() already checks
-               // the requested rev ID and immutable content against the cached one.
+               // the requested rev ID and content against the cached one for equality. For most
+               // content types, the output should not change during the lifetime of this cache.
                // Clearing it can cause extra parses on edit for no reason.
        }