Deleting Page Messes Up WantedPages

We've been doing some maintenance recently. I've deleted several pages that, immediately prior to deletion, were members of some categories. After deleting the page, I can go to, say, CategoryFoo, and the page of course isn't listed there any longer.

However, if I go to WantedPages, I will then see the that CategoryFoo wants the page I just deleted.

Steps to reproduce

  1. Create a page, member of CategoryFoo.

  2. Go to CategoryFoo and make sure the page is listed there.

  3. Delete the page.
  4. Go to WantedPages.

  5. Observe that it says that CategoryFoo wants the page you just deleted.

Example

Component selection

Details

MoinMoin Version

1.8.5

OS and Version

Python Version

Server Setup

Server Details

Language you are using the wiki in (set in the browser/UserPreferences)

Workaround

The workaround is to go to each category page and append ?action=refresh. Note that "Delete Cache" is greyed out in the actions pulldown for some reason.

Discussion

What you see is a side effect of FullSearchCached macro. If you want the search output updated, you need to delete the cache (refresh action). If you don't refresh, it will show same output as before the page deletion and thus still link to the deleted page, making it a wanted page.

If you can't live with that, use FullSearch, not FullSearchCached.

Plan


CategoryMoinMoinNoBug

MoinMoin: MoinMoinBugs/DeletePageDoesn'tClearPagelinkCategoryCache (last edited 2009-10-28 23:09:42 by ThomasWaldmann)