1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-04 23:57:29 +02:00

[Config] Don't check PATH_CACHE for memcached (#1489)

This commit is contained in:
Jakub Valenta
2022-03-24 20:29:16 +00:00
committed by GitHub
parent 0d20e9a05c
commit 8e2b65556f
4 changed files with 17 additions and 4 deletions

View File

@@ -6,6 +6,15 @@ class FileCache implements CacheInterface {
protected $path;
protected $key;
public function __construct() {
if (!is_writable(PATH_CACHE)) {
returnServerError(
'RSS-Bridge does not have write permissions for '
. PATH_CACHE . '!'
);
}
}
public function loadData(){
if(file_exists($this->getCacheFile())) {
return unserialize(file_get_contents($this->getCacheFile()));