[pLog-svn] r2343 - plog/trunk/class/dao/userdata

oscar at devel.plogworld.net oscar at devel.plogworld.net
Sun Jul 17 18:18:54 GMT 2005


Author: oscar
Date: 2005-07-17 18:18:53 +0000 (Sun, 17 Jul 2005)
New Revision: 2343

Modified:
   plog/trunk/class/dao/userdata/ploguserdataprovider.class.php
Log:
no need to keep in-memory caches anymore now that we have a proper disk-based cache!


Modified: plog/trunk/class/dao/userdata/ploguserdataprovider.class.php
===================================================================
--- plog/trunk/class/dao/userdata/ploguserdataprovider.class.php	2005-07-17 18:18:00 UTC (rev 2342)
+++ plog/trunk/class/dao/userdata/ploguserdataprovider.class.php	2005-07-17 18:18:53 UTC (rev 2343)
@@ -20,8 +20,6 @@
         function PlogUserDataProvider( $providerConfig )
         {
             $this->BaseUserDataProvider( $providerConfig, true );
-
-            $this->usercache = Array();
         }
 
         /**
@@ -106,10 +104,6 @@
          */
         function getUserInfoFromId( $userid, $extendedInfo = false )
         {
-            if( isset($this->usercache[$userid])) {
-                $userInfo = $this->usercache[$userid];
-            }
-            else {
                 $userInfo = $this->_cache->getData( $userid, CACHE_USERINFO );
                 if ( !$userInfo ) {
                     $prefix = $this->getPrefix();
@@ -125,9 +119,6 @@
                     $this->_cache->setData( $userid, CACHE_USERINFO, $userInfo );
                 }
 
-                $this->usercache[$userid] = $userInfo;
-            }
-
             return $userInfo;
         }
 




More information about the pLog-svn mailing list