mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-09 08:28:46 +00:00
Merge pull request #430 from sysadminstory/master
Fix Cache write verification
This commit is contained in:
commit
29e64f77aa
@ -14,7 +14,7 @@ class FileCache implements CacheInterface {
|
|||||||
public function saveData($datas){
|
public function saveData($datas){
|
||||||
$writeStream = file_put_contents($this->getCacheFile(), json_encode($datas, JSON_PRETTY_PRINT));
|
$writeStream = file_put_contents($this->getCacheFile(), json_encode($datas, JSON_PRETTY_PRINT));
|
||||||
|
|
||||||
if(!$writeStream) {
|
if($writeStream === FALSE) {
|
||||||
throw new \Exception("Cannot write the cache... Do you have the right permissions ?");
|
throw new \Exception("Cannot write the cache... Do you have the right permissions ?");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user