Index: branches/5.2.x/core/kernel/nparser/nparser.php =================================================================== diff -u -N -r16513 -r16772 --- branches/5.2.x/core/kernel/nparser/nparser.php (.../nparser.php) (revision 16513) +++ branches/5.2.x/core/kernel/nparser/nparser.php (.../nparser.php) (revision 16772) @@ -1,6 +1,6 @@ CachingEnabled) { return false; } + // Don't allow creating a non-expiring caches from a template. + if ( (int)$expiration <= 0 ) { + $expiration = null; + } + // remeber DataExists in cache, because after cache will be restored // it will not be available naturally (no tags, that set it will be called) $value .= '[DE_MARK:' . (int)$this->DataExists . ']';