send Last-Modified header on cache creation, misc tab/spacing cleanup

This commit is contained in:
mohrt
2003-02-14 14:51:47 +00:00
parent 6f1da78f94
commit 241708cd63
3 changed files with 2029 additions and 2022 deletions

1
NEWS
View File

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

View File

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

View File

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