This is an old revision of the document!
Table of Contents
INDEXER_VERSION_GET
- Description:
- Construct the version number of the indexer
- DefaultAction:
- None
- Preventable:
- no
- Added:
- 2011-03-06
This event is signalled by idx_get_version() in inc/indexer.php when the version of the indexer is checked in order to determine if a page needs to be indexed again because the index version has changed, handlers can use it to add their own version strings.
Passed Data
$data = array('dokuwiki'=>$version);
The data array follows the scheme name ⇒ version
. The name should be the plugin name, the version the version of the plugin index. This version should be increased whenever the data structure the plugin indexes changes. Whenever this version is changed all pages will be reindexed when they are visited or indexer.php
is called, so don't change that version too often. The version that is added should be a static string and not depend on anything else.
Plugins handling this event
The following plugins are known to handle this event and their source code may be a good start for understanding and implementing a handler yourself.