Caching could be enabled for other content types, but for the moment,
JS and CSS pages rely on the fact that the ShowRawCssJs hooks is called
for every view - which is bypassed when the parser cache is used.
Change-Id: Icf603b9f2a685d9e705db3459fcd12dae1fdba57
/**
* Returns true for content models that support caching using the
/**
* 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() {
*
* @since 1.21
*
* @return bool
*/
public function isParserCacheSupported() {
public function supportsSections() {
return true;
}
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?
}
# XXX: make ScriptContentHandler base class, do highlighting stuff there?