Manual:Hooks/HTMLFileCache::useFileCache
From Linux Web Expert
HTMLFileCache::useFileCache | |
---|---|
<translate> Available from <tvar name=1><translate> version <tvar (Gerrit change 160563)</tvar></translate> Override whether a page should be cached in file cache. | |
<translate> Define function:</translate> | public static function onHTMLFileCache_useFileCache( IContextSource $context ) { ... }
|
<translate> Attach hook:</translate> | <translate> In <tvar name=1>extension.json</tvar>:</translate>
{
"Hooks": {
"HTMLFileCache::useFileCache": "MediaWiki\\Extension\\MyExtension\\Hooks::onHTMLFileCacheuseFileCache"
}
}
|
<translate> Called from:</translate> | <translate> File(s):</translate> cache/HTMLFileCache.php <translate> Function(s):</translate> useFileCache |
<translate> Interface:</translate> | HTMLFileCache__useFileCacheHook.php |
<translate> For more information about attaching hooks, see <tvar name=1>Manual:Hooks </tvar>.</translate>
<translate> For examples of extensions using this hook, see <tvar name=cat>Category:HTMLFileCache::useFileCache extensions</tvar>.</translate>
Details
$context: An IContextSource object with information about the request being served.