Reindex
Questions answered by this recipe
Description
(Delete and) recreate the .pageindex file.
Installation
Copy rebuild-pageindex.phpΔ to the cookbook directory and add include_once("cookbook/rebuild-pageindex.php"); to config.php.
Usage
Append ?action=reindex to any page to regenerate the full site's .pageindex file
Use ?action=reindex&debug=true to perform a dry run and see what would happen
Notes
This is an administrative script. It isn't pretty. It isn't meant to be pretty. It's meant for a very periodic usage and so it doesn't bother with pretty messages and updates. If you want pretty messages and updates then please update the script and re-upload to this recipe.
Change log / Release notes
- 2015-01-31 Initial release
- 2015-06-18 built upon Peter's initial work, rewrite to make an action, remove unneeded code, walk all pagestores in the
$WikiLibDirs
array
See also
- ReindexCategories Update link targets and page index for PmWiki 2.3.0
See discussion at Reindex-Talk
User notes +3: If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki.