update resources

This commit is contained in:
mohrt
2002-03-01 20:26:06 +00:00
parent b32c582f45
commit 436be443eb
3 changed files with 13 additions and 10 deletions

View File

@@ -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

View File

@@ -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;
}
}

View File

@@ -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;
}
}