Merge "Make runLegacyHooks work around bug in Hooks." into Wikidata
authordaniel <daniel.kinzler@wikimedia.de>
Mon, 8 Oct 2012 11:10:41 +0000 (11:10 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Mon, 8 Oct 2012 11:10:41 +0000 (11:10 +0000)
includes/content/ContentHandler.php

index 99ae167..df0a180 100644 (file)
@@ -913,14 +913,14 @@ abstract class ContentHandler {
 
        /**
         * Returns true for content models that support caching using the
-        * ParserCache mechanism. See WikiPage::isParserCacheUser().
+        * ParserCache mechanism. See WikiPage::isParserCacheUsed().
         *
         * @since 1.21
         *
         * @return bool
         */
        public function isParserCacheSupported() {
-               return true;
+               return false;
        }
 
        /**
@@ -1087,6 +1087,17 @@ class WikitextContentHandler extends TextContentHandler {
        public function supportsSections() {
                return true;
        }
+
+       /**
+        * Returns true, because wikitext supports caching using the
+        * ParserCache mechanism.
+        *
+        * @since 1.21
+        * @return bool
+        */
+       public function isParserCacheSupported() {
+               return true;
+       }
 }
 
 # XXX: make ScriptContentHandler base class, do highlighting stuff there?