[pLog-svn] r2548 - in plog/branches/plog-1.0.2/class: summary/view view

jondaley at devel.plogworld.net jondaley at devel.plogworld.net
Thu Nov 10 02:44:24 GMT 2005


Author: jondaley
Date: 2005-11-10 02:44:23 +0000 (Thu, 10 Nov 2005)
New Revision: 2548

Modified:
   plog/branches/plog-1.0.2/class/summary/view/summarycachedview.class.php
   plog/branches/plog-1.0.2/class/view/smartyview.class.php
Log:
separated template_cache_lifetime and http_cache_lifetime.  It is enabled by default, and users can add a 'hidden' sql row to change the lifetime value.  http://bugs.plogworld.net/view.php?id=672

Modified: plog/branches/plog-1.0.2/class/summary/view/summarycachedview.class.php
===================================================================
--- plog/branches/plog-1.0.2/class/summary/view/summarycachedview.class.php	2005-11-10 02:09:26 UTC (rev 2547)
+++ plog/branches/plog-1.0.2/class/summary/view/summarycachedview.class.php	2005-11-10 02:44:23 UTC (rev 2548)
@@ -88,7 +88,7 @@
 		{
 			$config =& Config::getConfig();
 			
-			$cacheTime = $config->getValue( "template_cache_lifetime" );
+			$cacheTime = $config->getValue( "http_cache_lifetime", 1800 );
 			
 			if( $cacheTime == "" || !is_numeric($cacheTime))
 				$cacheTime = 1; // [almost] no value, just one second of caching

Modified: plog/branches/plog-1.0.2/class/view/smartyview.class.php
===================================================================
--- plog/branches/plog-1.0.2/class/view/smartyview.class.php	2005-11-10 02:09:26 UTC (rev 2547)
+++ plog/branches/plog-1.0.2/class/view/smartyview.class.php	2005-11-10 02:44:23 UTC (rev 2548)
@@ -154,7 +154,7 @@
 		{
 			$config =& Config::getConfig();
 			
-			$cacheTime = $config->getValue( "template_cache_lifetime" );
+			$cacheTime = $config->getValue( "http_cache_lifetime", 1800 );
 			
 			if( $cacheTime == "" || !is_numeric($cacheTime))
 				$cacheTime = 1; // [almost] no value, just one second of caching




More information about the pLog-svn mailing list