Manual:Hooks/OutputPageCheckLastModified

From MediaWiki.org

Jump to: navigation, search
OutputPageCheckLastModified
Available from version 1.14.0
When checking if the page has been modified since the last visit

*Define function:
function fnMyHook( &$modifiedTimes ) { ... }

*Attach hook:
$wgHooks['OutputPageCheckLastModified'][] = 'fnMyHook';
Called from: OutputPage.php

*For more information about attaching hooks, see Manual:Hooks.
*For examples of extensions using this hook, see Category:OutputPageCheckLastModified extensions.


[edit] Details

  • &$modifiedTimes: array of timestamps, the following keys are set:
    • page: page's timestamp
    • user: user's timestamp
    • epoch: $wgCacheEpoch