From 473b7d8ace5c9b8305773a32d32d92a1552ff9d3 Mon Sep 17 00:00:00 2001 From: messju Date: Mon, 30 Jun 2003 00:07:27 +0000 Subject: [PATCH] fixed handling of nocache-state --- libs/Smarty.class.php | 7 +++++++ libs/Smarty_Compiler.class.php | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index 533488cd..095ac707 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -571,6 +571,13 @@ class Smarty */ var $_cache_serials = array(); + /** + * name of optional cache include file + * + * @var string + */ + var $_cache_include = null; + /** * cached file paths * diff --git a/libs/Smarty_Compiler.class.php b/libs/Smarty_Compiler.class.php index 96b87506..49648cc7 100644 --- a/libs/Smarty_Compiler.class.php +++ b/libs/Smarty_Compiler.class.php @@ -80,7 +80,7 @@ class Smarty_Compiler extends Smarty { var $_obj_params_regexp = null; var $_obj_call_regexp = null; - var $_cacheable_state = true; + var $_cacheable_state = 0; var $_nocache_count = 0; var $_cache_serial = null; var $_cache_include = null;