From d9b6477ff6a30ec5459f2f4bdf0158752bcbfcdf Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Mon, 22 Aug 2016 18:59:23 +0200 Subject: [PATCH] [FileCache] Fix loading cached data Previously cached data was translated into object data (Item), this is no longer necessary. --- caches/FileCache.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/caches/FileCache.php b/caches/FileCache.php index c348fdf..2dc506b 100644 --- a/caches/FileCache.php +++ b/caches/FileCache.php @@ -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){