From 43e66755eee455100363e3e78ee58b6a1ead06e6 Mon Sep 17 00:00:00 2001 From: Denis Anikin Date: Fri, 28 Sep 2018 09:49:01 +0400 Subject: [PATCH] fix chaching: Users who can add pages have seen a cached page for users who are not allowed to add pages --- syntax.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syntax.php b/syntax.php index 4629040..9377584 100644 --- a/syntax.php +++ b/syntax.php @@ -83,7 +83,8 @@ public function render($mode, Doku_Renderer $renderer, $data) { global $lang; if($mode == 'xhtml') { - $disablecache = null; + $disablecache = true; + if($disablecache) $renderer->info['cache'] = false; $namespaceinput = $this->_htmlNamespaceInput($data['namespace'], $disablecache); if($namespaceinput === false) { if($this->getConf('addpage_hideACL')) { @@ -93,7 +94,6 @@ public function render($mode, Doku_Renderer $renderer, $data) { } return true; } - if($disablecache) $renderer->info['cache'] = false; $newpagetemplateinput = $this->_htmlTemplateInput($data['newpagetemplates']);