mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-06 09:42:57 +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;
|
protected $param;
|
||||||
|
|
||||||
public function loadData(){
|
public function loadData(){
|
||||||
|
if(file_exists($this->getCacheFile())) {
|
||||||
return unserialize(file_get_contents($this->getCacheFile()));
|
return unserialize(file_get_contents($this->getCacheFile()));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public function saveData($datas){
|
public function saveData($datas){
|
||||||
// Notice: We use plain serialize() here to reduce memory footprint on
|
// Notice: We use plain serialize() here to reduce memory footprint on
|
||||||
|
Reference in New Issue
Block a user