From ff0348f9eb1b28f64e945bb88c46ac59da6ac0db Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Thu, 3 Dec 2009 13:38:56 +0100 Subject: [PATCH] Added cache option --- syntax.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/syntax.php b/syntax.php index 0231803..0f16979 100644 --- a/syntax.php +++ b/syntax.php @@ -94,6 +94,7 @@ class syntax_plugin_filelist extends DokuWiki_Syntax_Plugin { 'direct' => 0, 'recursive' => 0, 'titlefile' => '_title.txt', + 'cache' => 0, ); foreach($flags as $flag) { list($name, $value) = split('=', $flag); @@ -115,7 +116,7 @@ class syntax_plugin_filelist extends DokuWiki_Syntax_Plugin { global $conf; // disable caching - $renderer->info['cache'] = false; + $renderer->info['cache'] = (bool) $params['cache']; list($type, $pattern, $params, $title, $pos) = $data; if ($mode == 'xhtml') {