/** * Experimental: Write After Plugin Main Function * * @param string &$page * @param string &$postdata * @param boolean &$notimestamp * @return void or exit */ function write_after() { $args = func_get_args(); $page = $args[0]; $postdata = $args[1]; if ($postdata == "") { // if page is deleted $pkwk_tag = new PluginSonotsTag(); $pkwk_tag->save_tags($page, array()); // remove tags } // ToDo: renew tag cache on write_after, not on read // Since the whole text must be parsed to find '&tag();', // it is not realistic. // Must create a separated form for Tags to avoid this load. }