[dokuwiki] Re: Remove a page from the cache

Christopher Smith wrote:


 There are a couple of short-cuts that will have the same effect.

1. Update the mtime of metadata file. The cached HTML is dependent on the metadata file. If the cache is older than the metadata it won't be valid. You can update metadata by either touching the file or setting some metadata value of your own. This is the best method to use if its only the html that needs to be refreshed - in plugin terms you're calling render() but not handle().



- Chris



Does this mean that calling this function:

  p_set_metadata($id, $data, $render, $persistent);

is effectively the same as touching the meta file? And where do these techniques stand with respect to the event processing of PARSER_CACHE_USE:

            $event->preventDefault();
            $event->stopPropagation();

Thanks,

Myron

--

_
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: