feat: add config option "path" for file cache (#3297)

This commit is contained in:
Dag 2023-03-20 19:10:01 +01:00 committed by GitHub
parent 4e616c7092
commit 9e9a697b8b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 67 additions and 27 deletions

View file

@ -39,6 +39,8 @@ class CacheFactory
return new NullCache();
case FileCache::class:
return new FileCache([
// Intentionally checking for "truthy" value
'path' => Configuration::getConfig('FileCache', 'path') ?: PATH_CACHE,
'enable_purge' => Configuration::getConfig('FileCache', 'enable_purge'),
]);
case SQLiteCache::class: