Manual:Hooks/AbortDiffCache
Jump to navigation
Jump to search
AbortDiffCache | |
---|---|
Available from version 1.14.0 Can be used to cancel the caching of a diff |
|
Define function: |
public static function onAbortDiffCache( &$diffEngine ) { ... }
|
Attach hook: |
In extension.json: {
"Hooks": {
"AbortDiffCache": "MyExtensionHooks::onAbortDiffCache"
}
}
For MediaWiki ≤1.25: $wgHooks['AbortDiffCache'][] = 'MyExtensionHooks::onAbortDiffCache';
|
Called from: | File(s): diff/DifferenceEngine.php |
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:AbortDiffCache extensions.
Details[edit]
- &$diffEngine: DifferenceEngine object