2 // +---------------------------------------------------------------------+
3 // | WikiPluginCached.php |
4 // +---------------------------------------------------------------------+
5 // | Copyright (C) 2002 Johannes Große (Johannes Große) |
6 // | You may copy this code freely under the conditions of the GPL |
7 // +---------------------------------------------------------------------+
9 /* There is a bug in it:
10 When the cache is empty and you safe the wikipages,
11 an immediately created cached output of
12 RecentChanges will at the rss-image-link include
17 require_once "lib/WikiPluginCached.php";
18 require_once "lib/plugin/RecentChanges.php";
20 class WikiPlugin_RecentChangesCached extends WikiPluginCached
22 /* --------- overwrite virtual or abstract methods ---------------- */
23 function getPluginType() {
24 return PLUGIN_CACHED_HTML;
28 return "RecentChangesCached";
31 function getDescription() {
32 return 'Caches output of RecentChanges called with default arguments.';
35 function getDefaultArguments() {
36 return WikiPlugin_RecentChanges::getDefaultArguments();
39 function getExpire($dbi, $argarray, $request) {
40 return '+900'; // 15 minutes
43 function getHtml($dbi, $argarray, $request) {
44 $loader = new WikiPluginLoader;
45 return $loader->expandPI('<?plugin RecentChanges '
46 . WikiPluginCached::glueArgs($argarray)
50 } // WikiPlugin_TexToPng
59 // c-hanging-comment-ender-p: nil
60 // indent-tabs-mode: nil