diff --git a/inc/rain.tpl.class.php b/inc/rain.tpl.class.php index 4ca8d51..3e23c64 100755 --- a/inc/rain.tpl.class.php +++ b/inc/rain.tpl.class.php @@ -440,7 +440,7 @@ protected function compileCode( $parsed_code ){ //include $compiled_code .= 'cache( "'.$include_var.'" ) )' . + 'if( $cache = $tpl->cache( "'.$include_template.'" ) )' . ' echo $cache;' . 'else{' . '$tpl->assign( $this->var );' .