cvs: smarty /libs Smarty.class.php /libs/core core.write_cache_file.php
"Messju Mohr" <[email protected]>
| Newsgroups | gmane.comp.php.cvs.smarty |
|---|---|
| Message-ID | <cvsmessju1068137619@cvsserver> |
messju Thu Nov 6 11:53:39 2003 EDT
Modified files:
/smarty/libs Smarty.class.php
/smarty/libs/core core.write_cache_file.php
Log:
added $exp_time-parameter of clear_cache() and clear_all_cache() to
cache_handler_func.
Index: smarty/libs/Smarty.class.php
diff -u smarty/libs/Smarty.class.php:1.453 smarty/libs/Smarty.class.php:1.454
--- smarty/libs/Smarty.class.php:1.453 Tue Nov 4 00:16:44 2003
+++ smarty/libs/Smarty.class.php Thu Nov 6 11:53:38 2003
@@ -43,7 +43,7 @@
* @version 2.6.0-RC2-cvs
*/
-/* $Id: Smarty.class.php,v 1.453 2003/11/04 05:16:44 messju Exp $ */
+/* $Id: Smarty.class.php,v 1.454 2003/11/06 16:53:38 messju Exp $ */
/**
* DIR_SEP isn't used anymore, but third party apps might
@@ -993,7 +993,7 @@
if (!empty($this->cache_handler_func)) {
return call_user_func_array($this->cache_handler_func,
- array('clear', &$this, &$dummy, $tpl_file, $cache_id, $compile_id));
+ array('clear', &$this, &$dummy, $tpl_file, $cache_id, $compile_id, $exp_time));
} else {
$_params = array('auto_base' => $this->cache_dir,
'auto_source' => $tpl_file,
@@ -1015,8 +1015,9 @@
function clear_all_cache($exp_time = null)
{
if (!empty($this->cache_handler_func)) {
+ $dummy = null;
call_user_func_array($this->cache_handler_func,
- array('clear', &$this, &$dummy));
+ array('clear', &$this, &$dummy, null, null, null, $exp_time));
} else {
$_params = array('auto_base' => $this->cache_dir,
'auto_source' => null,
Index: smarty/libs/core/core.write_cache_file.php
diff -u smarty/libs/core/core.write_cache_file.php:1.5 smarty/libs/core/core.write_cache_file.php:1.6
--- smarty/libs/core/core.write_cache_file.php:1.5 Sat Jun 21 23:13:25 2003
+++ smarty/libs/core/core.write_cache_file.php Thu Nov 6 11:53:39 2003
@@ -45,7 +45,7 @@
if (!empty($smarty->cache_handler_func)) {
// use cache_handler function
call_user_func_array($smarty->cache_handler_func,
- array('write', &$smarty, &$params['results'], $params['tpl_file'], $params['cache_id'], $params['compile_id']));
+ array('write', &$smarty, &$params['results'], $params['tpl_file'], $params['cache_id'], $params['compile_id'], null));
} else {
// use local cache file
--
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php