From 4253b51b591500142c1eaef5458629b0fd43a2d8 Mon Sep 17 00:00:00 2001 From: Andy Williams Date: Wed, 29 Nov 2017 09:27:40 +0000 Subject: [PATCH] WIKI BUGFIX - don't use the cache if useCache says not to This may not be the root cause but it fixes things in the meantime --- public_html/inc/parserutils.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public_html/inc/parserutils.php b/public_html/inc/parserutils.php index d17580ed..1231b26d 100644 --- a/public_html/inc/parserutils.php +++ b/public_html/inc/parserutils.php @@ -153,6 +153,8 @@ function p_cached_instructions($file,$cacheonly=false,$id='') { if(is_null($run)) $run = array(); $cache = new cache_instructions($id, $file); + if (!$cache->useCache()) + return p_get_instructions(io_readWikiPage($file,$id)); if ($cacheonly || $cache->useCache() || (isset($run[$file]) && !defined('DOKU_UNITTEST'))) { return $cache->retrieveCache();