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
This commit is contained in:
Andy Williams 2017-11-29 09:27:40 +00:00
parent e511f2d254
commit 4253b51b59
1 changed files with 2 additions and 0 deletions

View File

@ -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();