From: <gem...@li...> - 2012-05-23 08:01:39
|
Revision: 697 http://gemstracker.svn.sourceforge.net/gemstracker/?rev=697&view=rev Author: mennodekker Date: 2012-05-23 08:01:27 +0000 (Wed, 23 May 2012) Log Message: ----------- Now really fixing apc cache slam Modified Paths: -------------- trunk/library/classes/Gems/User/UserLoader.php Modified: trunk/library/classes/Gems/User/UserLoader.php =================================================================== --- trunk/library/classes/Gems/User/UserLoader.php 2012-05-21 13:24:59 UTC (rev 696) +++ trunk/library/classes/Gems/User/UserLoader.php 2012-05-23 08:01:27 UTC (rev 697) @@ -349,7 +349,6 @@ static $urls; if (! is_array($urls)) { - $urls = array(); if ($this->cache) { $cacheId = GEMS_PROJECT_NAME . '__' . get_class($this) . '__organizations_url'; $urls = $this->cache->load($cacheId); @@ -360,6 +359,7 @@ // When we don't use cache or cache reports 'false' for a miss or expiration // then try to reload the data if ($cacheId === false || $urls === false) { + $urls = array(); try { $data = $this->db->fetchPairs("SELECT gor_id_organization, gor_url_base FROM gems__organizations WHERE gor_active=1 AND gor_url_base IS NOT NULL"); } catch (Zend_Db_Exception $zde) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |