From 436be443eb7cb38c79ab5d3066f4c7b279c81aa2 Mon Sep 17 00:00:00 2001 From: mohrt Date: Fri, 1 Mar 2002 20:26:06 +0000 Subject: [PATCH] update resources --- RESOURCES | 5 +++++ Smarty.class.php | 9 ++++----- libs/Smarty.class.php | 9 ++++----- 3 files changed, 13 insertions(+), 10 deletions(-) diff --git a/RESOURCES b/RESOURCES index 7fa2a842..3977fa23 100644 --- a/RESOURCES +++ b/RESOURCES @@ -10,6 +10,11 @@ http://www.zend.com/zend/tut/tutsweatpart1.php Scripts: http://www.mapledesign.co.uk/coding/smarty_table.php +Software Using Smarty: +http://phplens.com/ +http://www.x-cart.com/ +http://www.moregroupware.org/ + Misc: http://freshmeat.net/projects/smarty/ http://www.hotscripts.com/Detailed/8817.html diff --git a/Smarty.class.php b/Smarty.class.php index 2c0f52d2..3d882caa 100644 --- a/Smarty.class.php +++ b/Smarty.class.php @@ -1445,9 +1445,8 @@ function _run_insert_handler($args) $cache_header = $cache_split[0]; $this->_cache_info = unserialize($cache_header); - $cache_timestamp = $this->_cache_info['timestamp']; - if (time() - $cache_timestamp > $this->cache_lifetime) { + if (time() - $this->_cache_info['timestamp'] > $this->cache_lifetime) { // cache expired, regenerate return false; } @@ -1455,7 +1454,7 @@ function _run_insert_handler($args) if ($this->compile_check) { foreach ($this->_cache_info['template'] as $template_dep) { $this->_fetch_template_info($template_dep, $template_source, $template_timestamp, false); - if ($cache_timestamp < $template_timestamp) { + if ($this->_cache_info['timestamp'] < $template_timestamp) { // template file has changed, regenerate cache return false; } @@ -1463,8 +1462,8 @@ function _run_insert_handler($args) if (isset($this->_cache_info['config'])) { foreach ($this->_cache_info['config'] as $config_dep) { - if ($cache_timestamp < filemtime($this->config_dir.'/'.$config_dep)) { - // config file file has changed, regenerate cache + if ($this->_cache_info['timestamp'] < filemtime($this->config_dir.'/'.$config_dep)) { + // config file has changed, regenerate cache return false; } } diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index 2c0f52d2..3d882caa 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -1445,9 +1445,8 @@ function _run_insert_handler($args) $cache_header = $cache_split[0]; $this->_cache_info = unserialize($cache_header); - $cache_timestamp = $this->_cache_info['timestamp']; - if (time() - $cache_timestamp > $this->cache_lifetime) { + if (time() - $this->_cache_info['timestamp'] > $this->cache_lifetime) { // cache expired, regenerate return false; } @@ -1455,7 +1454,7 @@ function _run_insert_handler($args) if ($this->compile_check) { foreach ($this->_cache_info['template'] as $template_dep) { $this->_fetch_template_info($template_dep, $template_source, $template_timestamp, false); - if ($cache_timestamp < $template_timestamp) { + if ($this->_cache_info['timestamp'] < $template_timestamp) { // template file has changed, regenerate cache return false; } @@ -1463,8 +1462,8 @@ function _run_insert_handler($args) if (isset($this->_cache_info['config'])) { foreach ($this->_cache_info['config'] as $config_dep) { - if ($cache_timestamp < filemtime($this->config_dir.'/'.$config_dep)) { - // config file file has changed, regenerate cache + if ($this->_cache_info['timestamp'] < filemtime($this->config_dir.'/'.$config_dep)) { + // config file has changed, regenerate cache return false; } }