< Manual:Hooks 
 
      | HTMLFileCache::useFileCache | |
|---|---|
| Available from version 1.24.0 (Gerrit change 160563) Override whether a page should be cached in file cache. | |
| Define function: | public static function onHTMLFileCache_useFileCache( IContextSource $context ) { ... }
 | 
| Attach hook: | In extension.json: {
	"Hooks": {
		"HTMLFileCache::useFileCache": "MyExtensionHooks::onHTMLFileCacheuseFileCache"
	}
}
 | 
| Called from: | File(s): cache/HTMLFileCache.php Function(s): useFileCache | 
| Interface: | HTMLFileCache__useFileCacheHook.php | 
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:HTMLFileCache::useFileCache extensions.
Details
$context: An IContextSource object with information about the request being served.
    This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.