[pmwiki-users] Category back links for software created pages in 2.1.26
Patrick R. Michaud
pmichaud at pobox.com
Thu Jun 21 12:06:13 CDT 2007
On Thu, Jun 21, 2007 at 11:38:19AM -0500, Chris Cox wrote:
> We will eventually upgrade our server... but until then, I noticed
> that generated pages (ones created by software) do not get their
> information updated in .pageindex so that back links (e.g. for
> categories) work. Removing .pageindex doesn't work either, the
> regenerated file also does not include the data either.
> The only way that works is to go into pmwiki, edit the page and
> save it... then the data in pageindex gets updated for the
> category add for the page (which isn't going to work since
> this is supposed to be automated).
> Is there some way I can force .pageindex to get updated
> as if somebody did an edit/save on the page?
You can remove it. :-) PmWiki will then regenerate the file
over the course of subsequent requests.
You could also perhaps remove the entry for the updated files
from .pageindex (e.g., via "grep -v"), but that could run into
a locking/race condition if PmWiki happens to be updating the
.pageindex at the same time.
You might also look at the Cookbook.ImportText recipe, which
may help in these situations. It's designed for importing
automatically generated text files into PmWiki.
More information about the pmwiki-users