Added cache option
This commit is contained in:
committed by
Adrian Lang
parent
a269b44c6a
commit
ff0348f9eb
@@ -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') {
|
||||||
|
|||||||
Reference in New Issue
Block a user