On 3/13/07, Ben Stallings <[EMAIL PROTECTED]> 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 _______________________________________________ pmwiki-users mailing list [email protected] http://www.pmichaud.com/mailman/listinfo/pmwiki-users
