[pLog-svn] r5442 - plog/branches/lifetype-1.2/class/template

mark at devel.lifetype.net mark at devel.lifetype.net
Thu May 24 02:30:11 EDT 2007


Author: mark
Date: 2007-05-24 02:30:10 -0400 (Thu, 24 May 2007)
New Revision: 5442

Modified:
   plog/branches/lifetype-1.2/class/template/cachedtemplate.class.php
Log:
dynamic block already initialize in Template() class. So, we don't need to initialize it again in CachedTemplate.

Modified: plog/branches/lifetype-1.2/class/template/cachedtemplate.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/template/cachedtemplate.class.php	2007-05-24 03:57:25 UTC (rev 5441)
+++ plog/branches/lifetype-1.2/class/template/cachedtemplate.class.php	2007-05-24 06:30:10 UTC (rev 5442)
@@ -31,11 +31,6 @@
             $config =& Config::getConfig();			
             $this->caching = $config->getValue( "template_cache_enabled");
             $this->cache_lifetime =  $config->getValue( "template_cache_lifetime" );
-            //$this->cache_dir    = $config->getValue( "temp_folder" )
-
-			// whatever is between the {dynamic}...{/dynamic} tags shouldn't be cached
-			$this->register_block('dynamic', "_smarty_nocache", false);
-			
         }
 
         /**
@@ -101,14 +96,4 @@
 			return $timestamp;
 		}
     }
-	
-	
-	/**
-	 * @private
-	 * this tells smarty *not* to cache contents, in case we need it
-	 */
-	function _smarty_nocache($param, $content, $smarty ) 
-	{
-		return $content;
-	}
 ?>



More information about the pLog-svn mailing list