mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-05 17:22:56 +02:00
Fix for crashes when accessing FileCache in case it has been purged/not created yet.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user