protected function getKSVersionAndSecret($partnerId) { $result = parent::getKSVersionAndSecret($partnerId); if ($result) { return $result; } $partner = PartnerPeer::retrieveByPK($partnerId); if (!$partner) { return array(1, null); } // VERY big problem $ksVersion = $partner->getKSVersion(); $cacheKey = self::getSecretsCacheKey($partnerId); $cacheSections = kCacheManager::getCacheSectionNames(kCacheManager::CACHE_TYPE_PARTNER_SECRETS); foreach ($cacheSections as $cacheSection) { $cacheStore = kCacheManager::getCache($cacheSection); if (!$cacheStore) { continue; } $cacheStore->set($cacheKey, array($partner->getAdminSecret(), $partner->getSecret(), $ksVersion)); } return array($ksVersion, $partner->getAdminSecret()); }
protected function getKSVersionAndSecret($partnerId) { $result = parent::getKSVersionAndSecret($partnerId); if ($result) { return $result; } $partner = PartnerPeer::retrieveByPK($partnerId); if (!$partner) { return array(1, null); } // VERY big problem $ksVersion = $partner->getKSVersion(); if (function_exists('apc_store')) { apc_store(self::SECRETS_CACHE_PREFIX . $partnerId, array($partner->getAdminSecret(), $partner->getSecret(), $ksVersion)); } return array($ksVersion, $partner->getAdminSecret()); }