Use '$renderer->nocache()'

This commit is contained in:
lpaulsen93
2020-09-19 13:54:27 +02:00
parent 6ddd45c38b
commit 41ca2bd314

View File

@@ -122,7 +122,9 @@ class syntax_plugin_filelist extends DokuWiki_Syntax_Plugin {
}
// disable caching
$renderer->info['cache'] = (bool) $params['cache'];
if ($params['cache'] === 0) {
$renderer->nocache();
}
if ($mode == 'xhtml' || $mode == 'odt') {
$result = $this->_create_filelist($pattern, $params);