summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Smith <chris@jalakai.co.uk>2014-03-17 01:33:46 +0000
committerChristopher Smith <chris@jalakai.co.uk>2014-03-17 01:33:46 +0000
commit59b1d9181358f31d8d65c38a64fb43a68c0fadb1 (patch)
treec1e2aa8cf22a10d0ec39df45fc2c005a425cf1d0
parent5f3da53e253bc878946671173feef853a48604b8 (diff)
downloadrpg-59b1d9181358f31d8d65c38a64fb43a68c0fadb1.tar.gz
rpg-59b1d9181358f31d8d65c38a64fb43a68c0fadb1.tar.bz2
adjust logic of caching comments for _nocache
-rw-r--r--inc/parserutils.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/inc/parserutils.php b/inc/parserutils.php
index 06bd6dbb8..281a93967 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