Skip to content

Commit

Permalink
Revert "Fix caching (#79)"
Browse files Browse the repository at this point in the history
This reverts commit 52cbbe7.

As @Klap-in pointed out [1] this change was incorrect as $disablecache
is passed by reference and updated by _htmlNamespaceInput().

Conflicts:
	syntax.php

[1]: #79 (comment)
  • Loading branch information
dregad committed May 10, 2023
1 parent 51a509d commit 99f48d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions syntax.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@ public function render($format, Doku_Renderer $renderer, $data) {
global $lang;

if($format == 'xhtml') {
$disablecache = true;
$renderer->info['cache'] = false;
$disablecache = false;
$namespaceinput = $this->_htmlNamespaceInput($data['namespace'], $disablecache);
if($namespaceinput === false) {
if($this->getConf('addpage_hideACL')) {
Expand All @@ -102,6 +101,7 @@ public function render($format, Doku_Renderer $renderer, $data) {
}
return true;
}
if($disablecache) $renderer->info['cache'] = false;

$newpagetemplateinput = $this->_htmlTemplateInput($data['newpagetemplates']);

Expand Down

0 comments on commit 99f48d0

Please sign in to comment.