Summary: PageExists cache $PageExistsCache becomes stale after new page created
Created: 2017-01-09 16:33
From: Peter Kay
Description: If you run PageExists("Main.Test"); and then use UpdatePage to create Main.Test, any future calls to PageExists will still return false, because $PageExistsCache has not been updated after UpdatePage.
The reverse might also happen: if a page is deleted after PageExists() is called, the cache will show the page still exists.
Peter Kay January 09, 2017, at 04:33 PM
One easy solution would be to add
And add the line "ClearPageExistsCache(
Peter Kay January 09, 2017, at 04:44 PM
After reviewing the entry, I may have to decline this feature request. Currently nothing prevents the core PmWiki to function properly, only a recipe may require the additional feature. Also, a recipe may have a number of different ways to create or delete pages: UpdatePage(), PostPage(), WritePage(),