[FileCache] Fix loading cached data
Previously cached data was translated into object data (Item), this is no longer necessary.
This commit is contained in:
parent
d5db4f5859
commit
d9b6477ff6
1 changed files with 1 additions and 9 deletions
|
@ -9,16 +9,8 @@ class FileCache extends CacheAbstract{
|
|||
$this->isPrepareCache();
|
||||
|
||||
$datas = unserialize(file_get_contents($this->getCacheFile()));
|
||||
$items = array();
|
||||
foreach($datas as $aData){
|
||||
$item = new \Item();
|
||||
foreach($aData as $name => $value){
|
||||
$item->$name = $value;
|
||||
}
|
||||
$items[] = $item;
|
||||
}
|
||||
|
||||
return $items;
|
||||
return $datas;
|
||||
}
|
||||
|
||||
public function saveData($datas){
|
||||
|
|
Loading…
Reference in a new issue