|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
shuther Smarty Rookie
Joined: 04 Jan 2004 Posts: 13
|
Posted: Tue Mar 09, 2004 3:30 pm Post subject: cache_handler_func and default cache |
|
|
Would it be possible to define a default cache_handler_func value? For example: 'core_cache_defaultfile_func', and to put the specific code (for example):
Code: |
$_params = array('auto_base' => $this->cache_dir,
'auto_source' => null,
'auto_id' => null,
'exp_time' => $exp_time);
require_once(SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.rm_auto.php');
return smarty_core_rm_auto($_params, $this);
|
into this file?
Thus, we will have a good template to start a new cache handler, and a code alittle bit smaller (if we use another cache handler).
What do you think?
NB. I don't feel confident enough in the cache feature to do it by myself. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|