diff --git a/docs/programmers.sgml b/docs/programmers.sgml index 48573bd7..33d32e61 100644 --- a/docs/programmers.sgml +++ b/docs/programmers.sgml @@ -287,7 +287,8 @@ $smarty->autoload_filters = array('pre' => array('trim', 'stamp'), You can supply a custom function to handle cache files instead of using the built-in method using the $cache_dir. See the - custom cache handler function section for details. + custom cache + handler function section for details. @@ -2187,6 +2188,9 @@ $smarty->display("index.tpl"); read/write), the fifth parameter is the cache_id (optional), and the sixth is the compile_id (optional). + + Note: The last parameter ($exp_time) was added in Smarty-2.6.0. + example using MySQL as a cache source @@ -2215,7 +2219,7 @@ CacheContents MEDIUMTEXT NOT NULL */ -function mysql_cache_handler($action, &$smarty_obj, &$cache_content, $tpl_file=null, $cache_id=null, $compile_id=null) +function mysql_cache_handler($action, &$smarty_obj, &$cache_content, $tpl_file=null, $cache_id=null, $compile_id=null, $exp_time=null) { // set db host, user and pass here $db_host = 'localhost';