From 41ca2bd314b068c5c9fb8638aa3f9149a914ae0f Mon Sep 17 00:00:00 2001 From: lpaulsen93 Date: Sat, 19 Sep 2020 13:54:27 +0200 Subject: [PATCH] Use '$renderer->nocache()' --- syntax.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/syntax.php b/syntax.php index 40a4ef4..5a67acc 100644 --- a/syntax.php +++ b/syntax.php @@ -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);