return $undone_content;
}
+
+ /**
+ * Returns true for content models that support caching using the ParserCache mechanism.
+ * See WikiPage::isParserCacheUser().
+ *
+ * @return book
+ */
+ public function isParserCacheSupported() {
+ return true;
+ }
}
&& $parserOptions->getStubThreshold() == 0
&& $this->mTitle->exists()
&& ( $oldid === null || $oldid === 0 || $oldid === $this->getLatest() )
- && $this->mTitle->isWikitextPage(); #FIXME: ask ContentHandler if cachable!
+ && $this->getContentHandler()->isParserCacheSupported();
}
/**