Recent Changes - Search:

Cookbook

PmWiki

pmwiki.org

Reindex

Summary: Force re-creation of entire .pageindex
Version: 2015-06-18
Prerequisites:
Status: experimental
Maintainer: Peter Bowers
Categories: Uncategorized
Users: +2 (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

Contributors

mrspcolli

Comments

See discussion at Reindex-Talk

User notes +2: 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.

Edit - History - Print - Recent Changes - Search
Page last modified on June 18, 2015, at 07:46 PM