[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

@ -13,6 +13,13 @@ class SQLiteCache implements CacheInterface {
die('"sqlite3" extension not loaded. Please check "php.ini"');
}
if (!is_writable(PATH_CACHE)) {
returnServerError(
'RSS-Bridge does not have write permissions for '
. PATH_CACHE . '!'
);
}
$file = Configuration::getConfig(get_called_class(), 'file');
if (empty($file)) {
die('Configuration for ' . get_called_class() . ' missing. Please check your ' . FILE_CONFIG);