Added cache option

This commit is contained in:
Andreas Gohr
2009-12-03 13:38:56 +01:00
committed by Adrian Lang
parent a269b44c6a
commit ff0348f9eb

View File

@@ -94,6 +94,7 @@ class syntax_plugin_filelist extends DokuWiki_Syntax_Plugin {
'direct' => 0, 'direct' => 0,
'recursive' => 0, 'recursive' => 0,
'titlefile' => '_title.txt', 'titlefile' => '_title.txt',
'cache' => 0,
); );
foreach($flags as $flag) { foreach($flags as $flag) {
list($name, $value) = split('=', $flag); list($name, $value) = split('=', $flag);
@@ -115,7 +116,7 @@ class syntax_plugin_filelist extends DokuWiki_Syntax_Plugin {
global $conf; global $conf;
// disable caching // disable caching
$renderer->info['cache'] = false; $renderer->info['cache'] = (bool) $params['cache'];
list($type, $pattern, $params, $title, $pos) = $data; list($type, $pattern, $params, $title, $pos) = $data;
if ($mode == 'xhtml') { if ($mode == 'xhtml') {