forked from blallo/rss-bridge
Fix for crashes when accessing FileCache in case it has been purged/not created yet.
This commit is contained in:
parent
9b34b68180
commit
3ca59392c2
1 changed files with 3 additions and 1 deletions
|
@ -8,8 +8,10 @@ class FileCache implements CacheInterface {
|
|||
protected $param;
|
||||
|
||||
public function loadData(){
|
||||
if(file_exists($this->getCacheFile())) {
|
||||
return unserialize(file_get_contents($this->getCacheFile()));
|
||||
}
|
||||
}
|
||||
|
||||
public function saveData($datas){
|
||||
// Notice: We use plain serialize() here to reduce memory footprint on
|
||||
|
|
Loading…
Reference in a new issue