cvs: smarty /docs programmers.sgml
"Messju Mohr" <[email protected]>
| Newsgroups | gmane.comp.php.cvs.smarty |
|---|---|
| Message-ID | <cvsmessju1068137640@cvsserver> |
messju Thu Nov 6 11:54:00 2003 EDT
Modified files:
/smarty/docs programmers.sgml
Log:
added $exp_time to cache_handler_func-example
Index: smarty/docs/programmers.sgml
diff -u smarty/docs/programmers.sgml:1.46 smarty/docs/programmers.sgml:1.47
--- smarty/docs/programmers.sgml:1.46 Wed Oct 29 17:46:44 2003
+++ smarty/docs/programmers.sgml Thu Nov 6 11:54:00 2003
@@ -287,7 +287,8 @@
<para>
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 <link linkend="section.template.cache.handler.func">cache
+ handler function section</link> for details.
</para>
</sect1>
<sect1 id="variable.cache.modified.check">
@@ -2187,6 +2188,9 @@
read/write), the fifth parameter is the cache_id (optional), and the
sixth is the compile_id (optional).
</para>
+ <para>
+ Note: The last parameter ($exp_time) was added in Smarty-2.6.0.
+ </para>
<example>
<title>example using MySQL as a cache source</title>
<programlisting>
@@ -2215,7 +2219,7 @@
*/
-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';
--
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php