< Manual:Hooks 
  
        
      | RejectParserCacheValue | |
|---|---|
| Available from version 1.26.0 (Gerrit change I660679a48c) Return false to reject an otherwise usable cached value from the Parser cache.  | |
| Define function: | public static function onRejectParserCacheValue( $parserOutput, $wikiPage, $parserOptions ) { ... }
 | 
| Attach hook: | In extension.json:
{
	"Hooks": {
		"RejectParserCacheValue": "MyExtensionHooks::onRejectParserCacheValue"
	}
}
 | 
| Called from: | File(s): parser/ParserCache.php Function(s): get  | 
| Interface: | RejectParserCacheValueHook.php | 
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:RejectParserCacheValue extensions.
Summary
This hook allows extensions to reject an otherwise-successful parser cache lookup. The intent is to allow extensions to manage the eviction of archaic HTML output from the cache.
Return true or no return value to continue, or false to reject an otherwise usable cached value from the Parser cache.
Parameters
$parserOutput:ParserOutputobject$wikiPage:WikiPageobject$parserOptions:ParserOptionsobject
    This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.