* or to delete the whole cache for this page: * * * Author: Reini Urban * */ class WikiPlugin_NoCache extends WikiPlugin { function getName() { return _("NoCache"); } function getDescription() { return _("Don't cache this page."); } function getVersion() { return preg_replace("/[Revision: $]/", '', "\$Revision: 1.3 $"); } function getDefaultArguments() { return array( 'nocache' => 1 ); } function run($dbi, $argstr, &$request, $basepage) { $args = $this->getArgs($argstr, $request); // works regardless of WIKIDB_NOCACHE_MARKUP // if WIKIDB_NOCACHE_MARKUP is false it doesn't hurt return $request->setArg('nocache', $args['nocache']); } }; // $Log: not supported by cvs2svn $ // Revision 1.2 2004/02/25 16:21:25 rurban // fixed parse error on line 71 // // Revision 1.1 2004/02/24 17:34:26 rurban // Don't cache the following page. Mostly used for plugins, which // display dynamic content. // // ---------------------------------------------------------------------- // // For emacs users // Local Variables: // mode: php // tab-width: 8 // c-basic-offset: 4 // c-hanging-comment-ender-p: nil // indent-tabs-mode: nil // End: ?>