- 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

@@ -367,12 +367,8 @@ abstract class BasicModel extends \DB\Cortex {
// table cache exists
// -> check cache for this row data
$cacheKey = $this->getCacheKey($dataCacheKeyPrefix);
if( !is_null($cacheKey) ){
$f3 = self::getF3();
if( $f3->exists($cacheKey) ){
$cacheData = $f3->get( $cacheKey );
}
self::getF3()->exists($cacheKey, $cacheData);
}
return $cacheData;