- improved caching (reduced cache access count by using references)

This commit is contained in:
Exodus4D
2017-01-29 15:48:27 +01:00
parent b60158360d
commit 5504e7dc86
7 changed files with 141 additions and 164 deletions

View File

@@ -351,8 +351,8 @@ class System extends Controller\AccessController {
}
$cacheKey = 'CACHE_CONSTELLATION_SYSTEMS_' . self::formatHiveKey($constellationId);
if($f3->exists($cacheKey)){
$return->systemData = $f3->get($cacheKey);
if($f3->exists($cacheKey, $cachedData)){
$return->systemData = $cachedData;
}else{
if($constellationId > 0){
$systemModels = $this->getSystemModelByIds([$constellationId], 'constellationID');