Reindex

Summary: Force re-creation of entire .pageindex
Version: 2015-06-18
Prerequisites:
Status: experimental
Maintainer: Peter Bowers
Categories: Uncategorized
Users: +3 (view / edit)
Discussion: Reindex-Talk

Questions answered by this recipe

All sections are optional, you can remove those that do not apply to your recipe, and add new ones.

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

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.