[pLog-svn] r3902 - plog/trunk/class/summary/view

jondaley at devel.lifetype.net jondaley at devel.lifetype.net
Sun Aug 20 03:59:25 GMT 2006


Author: jondaley
Date: 2006-08-20 03:59:05 +0000 (Sun, 20 Aug 2006)
New Revision: 3902

Modified:
   plog/trunk/class/summary/view/summaryrssview.class.php
Log:
fixed rss feeds being cached too much.  http://forums.lifetype.net/viewtopic.php?p=27942

Modified: plog/trunk/class/summary/view/summaryrssview.class.php
===================================================================
--- plog/trunk/class/summary/view/summaryrssview.class.php	2006-08-19 19:53:17 UTC (rev 3901)
+++ plog/trunk/class/summary/view/summaryrssview.class.php	2006-08-20 03:59:05 UTC (rev 3902)
@@ -35,6 +35,15 @@
 			$templateTmpFolder = $config->getValue( "temp_folder" ).'/summary';
 			$this->_template->cache_dir = $templateTmpFolder;
 			$this->_template->compile_dir = $templateTmpFolder;
+
+                // set the summary custom time
+            include_once( PLOG_CLASS_PATH."class/config/config.class.php" );
+            $config =& Config::getConfig();
+                // set the summary cache lifetime, or zero if none
+            $summaryTemplateLifetime = $config->getValue( "summary_template_cache_lifetime", 0 );
+            if( $summaryTemplateLifetime > 0 ) {
+                $this->_template->cache_lifetime = $summaryTemplateLifetime;
+            }
         }		
 
         function sendUncachedOutput()



More information about the pLog-svn mailing list