mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 02:14:26 +02:00
update resources
This commit is contained in:
@@ -10,6 +10,11 @@ http://www.zend.com/zend/tut/tutsweatpart1.php
|
|||||||
Scripts:
|
Scripts:
|
||||||
http://www.mapledesign.co.uk/coding/smarty_table.php
|
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:
|
Misc:
|
||||||
http://freshmeat.net/projects/smarty/
|
http://freshmeat.net/projects/smarty/
|
||||||
http://www.hotscripts.com/Detailed/8817.html
|
http://www.hotscripts.com/Detailed/8817.html
|
||||||
|
@@ -1445,9 +1445,8 @@ function _run_insert_handler($args)
|
|||||||
$cache_header = $cache_split[0];
|
$cache_header = $cache_split[0];
|
||||||
|
|
||||||
$this->_cache_info = unserialize($cache_header);
|
$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
|
// cache expired, regenerate
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -1455,7 +1454,7 @@ function _run_insert_handler($args)
|
|||||||
if ($this->compile_check) {
|
if ($this->compile_check) {
|
||||||
foreach ($this->_cache_info['template'] as $template_dep) {
|
foreach ($this->_cache_info['template'] as $template_dep) {
|
||||||
$this->_fetch_template_info($template_dep, $template_source, $template_timestamp, false);
|
$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
|
// template file has changed, regenerate cache
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -1463,8 +1462,8 @@ function _run_insert_handler($args)
|
|||||||
|
|
||||||
if (isset($this->_cache_info['config'])) {
|
if (isset($this->_cache_info['config'])) {
|
||||||
foreach ($this->_cache_info['config'] as $config_dep) {
|
foreach ($this->_cache_info['config'] as $config_dep) {
|
||||||
if ($cache_timestamp < filemtime($this->config_dir.'/'.$config_dep)) {
|
if ($this->_cache_info['timestamp'] < filemtime($this->config_dir.'/'.$config_dep)) {
|
||||||
// config file file has changed, regenerate cache
|
// config file has changed, regenerate cache
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1445,9 +1445,8 @@ function _run_insert_handler($args)
|
|||||||
$cache_header = $cache_split[0];
|
$cache_header = $cache_split[0];
|
||||||
|
|
||||||
$this->_cache_info = unserialize($cache_header);
|
$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
|
// cache expired, regenerate
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -1455,7 +1454,7 @@ function _run_insert_handler($args)
|
|||||||
if ($this->compile_check) {
|
if ($this->compile_check) {
|
||||||
foreach ($this->_cache_info['template'] as $template_dep) {
|
foreach ($this->_cache_info['template'] as $template_dep) {
|
||||||
$this->_fetch_template_info($template_dep, $template_source, $template_timestamp, false);
|
$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
|
// template file has changed, regenerate cache
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -1463,8 +1462,8 @@ function _run_insert_handler($args)
|
|||||||
|
|
||||||
if (isset($this->_cache_info['config'])) {
|
if (isset($this->_cache_info['config'])) {
|
||||||
foreach ($this->_cache_info['config'] as $config_dep) {
|
foreach ($this->_cache_info['config'] as $config_dep) {
|
||||||
if ($cache_timestamp < filemtime($this->config_dir.'/'.$config_dep)) {
|
if ($this->_cache_info['timestamp'] < filemtime($this->config_dir.'/'.$config_dep)) {
|
||||||
// config file file has changed, regenerate cache
|
// config file has changed, regenerate cache
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user