This commit is contained in:
exodus4d
2015-08-11 19:06:53 +02:00
parent 57367ce99c
commit 58b4b1b0c0
21 changed files with 736 additions and 445 deletions

View File

@@ -85,8 +85,6 @@ class BasicModel extends \DB\Cortex {
!is_object($currentVal) &&
$currentVal != $val
){
//print_r($val);
//print_r($this->cast());
$this->touch('updated');
}
}
@@ -206,7 +204,6 @@ class BasicModel extends \DB\Cortex {
$cacheKey .= '.ID_';
}
$cacheKey .= (string) $this->_id;
}
return $cacheKey;
@@ -327,9 +324,12 @@ class BasicModel extends \DB\Cortex {
$cacheKey = $this->getCacheKey($dataCacheKeyPrefix);
$cacheData = null;
$f3 = self::getF3();
if( $f3->exists($cacheKey) ){
$cacheData = $f3->get( $cacheKey );
if( !is_null($cacheKey) ){
$f3 = self::getF3();
if( $f3->exists($cacheKey) ){
$cacheData = $f3->get( $cacheKey );
}
}
return $cacheData;