[FileCache] Fix loading cached data

Previously cached data was translated into object data (Item),
this is no longer necessary.
This commit is contained in:
logmanoriginal 2016-08-22 18:59:23 +02:00
parent d5db4f5859
commit d9b6477ff6

View file

@ -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){