[pLog-svn] r4776 - plog/branches/lifetype-1.2/class/cache

oscar at devel.lifetype.net oscar at devel.lifetype.net
Sun Feb 18 16:25:23 EST 2007


Author: oscar
Date: 2007-02-18 16:25:23 -0500 (Sun, 18 Feb 2007)
New Revision: 4776

Modified:
   plog/branches/lifetype-1.2/class/cache/cachemanager.class.php
Log:
these changes are the difference between the static variable $cache being set to an object (and consequently being not null in subsequent calls to CacheManager::getCache())


Modified: plog/branches/lifetype-1.2/class/cache/cachemanager.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/cache/cachemanager.class.php	2007-02-18 21:09:52 UTC (rev 4775)
+++ plog/branches/lifetype-1.2/class/cache/cachemanager.class.php	2007-02-18 21:25:23 UTC (rev 4776)
@@ -11,8 +11,6 @@
     */
     class CacheManager 
     {
-        var $cache;
-
 		/**
 		 * Returns an instance of the cache.
 		 *
@@ -42,7 +40,7 @@
 					);
 					
 					// build a new cache object
-					$cache =& new MemCache( $cacheParameter);
+					$cache = new MemCache( $cacheParameter);
 				}
 				else {					
                 	require_once( PLOG_CLASS_PATH . "class/cache/cache.class.php" );					
@@ -57,7 +55,7 @@
 	                );
 
 	                // build a new cache object
-	                $cache =& new Cache( $cacheParameter);
+	                $cache = new Cache( $cacheParameter);
 				}
             }
             return $cache;



More information about the pLog-svn mailing list