summaryrefslogtreecommitdiff
path: root/inc/parserutils.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2014-05-04 19:32:38 +0200
committerAndreas Gohr <andi@splitbrain.org>2014-05-04 19:32:38 +0200
commite17b5b89766fa83993f838e8df9cecd9cf9e86ab (patch)
tree04433256b13dfaf1fe860c0493b28f21d4a3fd7e /inc/parserutils.php
parent923b1981147d725b97b4c6500981557fdc3be49b (diff)
parent59b1d9181358f31d8d65c38a64fb43a68c0fadb1 (diff)
downloadrpg-e17b5b89766fa83993f838e8df9cecd9cf9e86ab.tar.gz
rpg-e17b5b89766fa83993f838e8df9cecd9cf9e86ab.tar.bz2
Merge pull request #618 from splitbrain/cache_and_cachetime
Fix longstanding issue with cache class & cachetime setting
Diffstat (limited to 'inc/parserutils.php')
-rw-r--r--inc/parserutils.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/inc/parserutils.php b/inc/parserutils.php
index 8244837e1..9c2a0b570 100644
--- a/inc/parserutils.php
+++ b/inc/parserutils.php
@@ -112,8 +112,7 @@ function p_cached_output($file, $format='xhtml', $id='') {
} else {
$parsed = p_render($format, p_cached_instructions($file,false,$id), $info);
- if ($info['cache']) {
- $cache->storeCache($parsed); //save cachefile
+ if ($info['cache'] && $cache->storeCache($parsed)) { // storeCache() attempts to save cachefile
if($conf['allowdebug'] && $format=='xhtml') $parsed .= "\n<!-- no cachefile used, but created {$cache->cache} -->\n";
}else{
$cache->removeCache(); //try to delete cachefile