[pmwiki-users] refresh/cache bug
Patrick R. Michaud
pmichaud at pobox.com
Tue Mar 13 07:33:57 CDT 2007
On Tue, Mar 13, 2007 at 06:15:59AM -0500, The Editor wrote:
> Well it's probably not a bug, but I need some help with a workaround...
>
> Now that I've switched to a different approach for updating TextVars
> in ZAP I'm noticing a problem more consistently than before.
> Basically, I submit the form. ZAP makes the changes. HandleBrowse
> reloads the page. And then, while the text of the page has been
> updated (can see by editing)--the page display shows the old text var
> values until I refresh the page.
>
> I think I'm seeing this more because I'm no longer using (:zapdata:)
> which processed this kind of stuff differently. I basically need a
> command to update the text var cache/or refresh them, without losing
> my messaging, which is what happens when you use Redirect...
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.
Pm
More information about the pmwiki-users
mailing list