[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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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()));