DokuWiki

It's better when it's simple

User Tools

Site Tools


devel:event:indexer_version_get

This is an old revision of the document!


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.

See also

devel/event/indexer_version_get.1472923313.txt.gz · Last modified: 2016-09-03 19:21 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