Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

cache_handler_func and default cache

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Smarty Development
View previous topic :: View next topic  
Author Message
shuther
Smarty Rookie


Joined: 04 Jan 2004
Posts: 13

PostPosted: Tue Mar 09, 2004 3:30 pm    Post subject: cache_handler_func and default cache Reply with quote

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
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Smarty Development All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP