mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 10:24:26 +02:00
send Last-Modified header on cache creation, misc tab/spacing cleanup
This commit is contained in:
1
NEWS
1
NEWS
@@ -1,3 +1,4 @@
|
|||||||
|
- send Last-Modified header on cache creation (Monte)
|
||||||
- check strict syntax of function attributes (Monte)
|
- check strict syntax of function attributes (Monte)
|
||||||
- dropped support for modifers on object parameters,
|
- dropped support for modifers on object parameters,
|
||||||
added support for objects as modifier parameters (Monte)
|
added support for objects as modifier parameters (Monte)
|
||||||
|
@@ -1091,6 +1091,9 @@ class Smarty
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$this->_cache_info['template'][] = $_smarty_tpl_file;
|
$this->_cache_info['template'][] = $_smarty_tpl_file;
|
||||||
|
if ($this->cache_modified_check) {
|
||||||
|
header("Last-Modified: ".gmdate('D, d M Y H:i:s', time()).' GMT');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(isset($_cache_info)) {
|
if(isset($_cache_info)) {
|
||||||
// restore cache_info
|
// restore cache_info
|
||||||
|
@@ -1091,6 +1091,9 @@ class Smarty
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$this->_cache_info['template'][] = $_smarty_tpl_file;
|
$this->_cache_info['template'][] = $_smarty_tpl_file;
|
||||||
|
if ($this->cache_modified_check) {
|
||||||
|
header("Last-Modified: ".gmdate('D, d M Y H:i:s', time()).' GMT');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(isset($_cache_info)) {
|
if(isset($_cache_info)) {
|
||||||
// restore cache_info
|
// restore cache_info
|
||||||
|
Reference in New Issue
Block a user