Skip to content

Commit 9cfce0b

Browse files
authored
Merge pull request dokufreaks#103 from dokufreaks/use-nocache
Use '$renderer->nocache()'
2 parents 25e5701 + b552635 commit 9cfce0b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

syntax/autoarchive.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function render($mode, Doku_Renderer $renderer, $data) {
4141
if ($mode != 'xhtml') return false;
4242

4343
// no caching for dynamic content
44-
$renderer->info['cache'] = false;
44+
$renderer->nocache();
4545

4646
// get the blog entries for our namespace
4747
if ($my = plugin_load('helper', 'blog')) $entries = $my->getBlog($ns);

syntax/blog.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ function render($mode, Doku_Renderer $renderer, $data) {
7474

7575
if ($mode == 'xhtml') {
7676
// prevent caching to ensure the included pages are always fresh
77-
$renderer->info['cache'] = false;
77+
$renderer->nocache();
7878
}
7979

8080
if (!$entries) {

0 commit comments

Comments
 (0)