devel:event:indexer_version_get
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 bin/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.
See also
- Code related to this event used in any DokuWiki's files, plugins and templates
devel/event/indexer_version_get.txt · Last modified: 2022-10-20 18:24 by Klap-in