[pmwiki-devel] Strange keywords and description behavior...

The Editor editor at fast.st
Thu Apr 5 10:11:27 CDT 2007


> Yes, that's it.  PmWiki doesn't expect to have UpdatePage() be
> called multiple times for a page -- as a result, it's
> re-rendering the page each time the page is called, and
> each rendering adds more keywords and descriptions to the result.
>
> But even if that part worked, I'd still recommend against
> calling UpdatePage() separately for each update, as each individual
> attribute setting then shows up as a separate entry in the
> page's history.  They really ought to be a single entry.

Ok, I have a different idea.  Appreciate the confirmation...

> I should also note that I've indicated in previous posts that
> PmWiki's internal handling of (:keywords ...:), (:title ...:),
> and (:description ...:) are likely to change during beta, so I
> wouldn't get too attached to PmWiki's current implementation.
> However, for a kludgy workaround, you could try clearing
> PmWiki's internal cache prior to each call of UpdatePage:

I tried unset($PCache[$ZAParray[datapage]]);

both before and after the changes are made with no results.  But I
felt it was pretty kludgy myself.  : )

Thanks again Pm.

Cheers,
Dan



More information about the pmwiki-devel mailing list