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

$caching_lifetime in seconds

 
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 3
View previous topic :: View next topic  
Author Message
yankee
Smarty Rookie


Joined: 02 Mar 2009
Posts: 31

PostPosted: Sat Mar 07, 2009 8:03 am    Post subject: $caching_lifetime in seconds Reply with quote

Just a very tiny documentation "bug" that might save one a little guessing:
Code:
Index: Smarty3Alpha/libs/Smarty.class.php
===================================================================
--- Smarty3Alpha/libs/Smarty.class.php  (revision 3023)
+++ Smarty3Alpha/libs/Smarty.class.php  (working copy)
@@ -78,7 +78,7 @@
     public $compile_error = false;
     // caching enabled
     public $caching = false;
-    // caching lifetime
+    // caching lifetime in seconds
     public $caching_lifetime = 0;
     // cache_id
     public $cache_id = null;


EDIT: While I am thinking about it: Caching with a chaching_lifetime of 0 does not make any sense, does it? Smile.
The $caching-var could be ommited. Whether caching is enabled or not can still be indicated by setting $caching_lifetime to <=0 (caching disabled) or a value >0 (caching enabled with the given lifetime)
Back to top
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5068
Location: Hamburg / Germany

PostPosted: Sat Mar 07, 2009 2:37 pm    Post subject: Reply with quote

See http://www.smarty.net/manual/en/variable.cache.lifetime.php for documentation how Smarty2 works.

It's currently same implementation in Smarty3
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 3 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