* 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 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 $request->setArg('nocache', $args['nocache']); return HTML::raw(''); } }; // 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: ?>