DokuWiki

It's better when it's simple

User Tools

Site Tools


devel:event:indexer_version_get

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.

See also

devel/event/indexer_version_get.txt · Last modified: 2018-12-08 15:41 by torpedo

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki