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:
parent
e511f2d254
commit
4253b51b59
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue