[pmwiki-users] refresh/cache bug

The Editor editor at fast.st
Tue Mar 13 10:39:42 CDT 2007


On 3/13/07, Ben Stallings <ben at interdependentweb.com> wrote:
> Pm replied to Dan:
> > You don't need to update or refresh them -- simply invalidate the
> > existing cache.
> >
> >     global $PCache;
> >     $PCache = array();
> >
> > Since the entries no longer exist in the cache, PmWiki will look
> > up and cache the new values as it needs them.
>
> Or, rather than invalidating the whole cache, just clear the part you
> changed:
>
>   global $PCache;
>   unset $PCache[$pagename];
>
> I ran into the same exact problem with DataQuery, which uses its own
> separate cache array to avoid the need for multiple queries when you do,
> say, a ls command followed immediately by a read command on every record
> that was just listed, as happens when you do a pagelist.  --Ben


Yes, these worked great!  (I went with Ben's solution as only need
this when the current page is being reloaded).  That solved one really
aggravating little bug in ZAP!

Cheers,
Dan



More information about the pmwiki-users mailing list