Index: Smarty.class.php =================================================================== RCS file: /repository/smarty/Smarty.class.php,v retrieving revision 1.313 diff -u -r1.313 Smarty.class.php --- Smarty.class.php 18 Oct 2002 16:54:41 -0000 1.313 +++ Smarty.class.php 29 Oct 2002 04:28:14 -0000 @@ -931,7 +931,7 @@ } else { // compile template $this->_compile_template($tpl_file, $template_source, $template_compiled); - $this->_write_compiled_template($compile_path, $template_compiled); + $this->_write_compiled_template($compile_path, $template_compiled, $template_timestamp); return true; } } @@ -942,7 +942,7 @@ return false; } $this->_compile_template($tpl_file, $template_source, $template_compiled); - $this->_write_compiled_template($compile_path, $template_compiled); + $this->_write_compiled_template($compile_path, $template_compiled, $template_timestamp); return true; } } @@ -961,10 +961,11 @@ Function: _write_compiled_template Purpose: \*======================================================================*/ - function _write_compiled_template($compile_path, $template_compiled) + function _write_compiled_template($compile_path, $template_compiled, $template_timestamp) { // we save everything into $compile_dir $this->_write_file($compile_path, $template_compiled, true); + touch($compile_path, $template_timestamp); return true; }