fix: CacheAdapter does not connect when using a CacheAdapter with a JSON config (#8633)

This commit is contained in:
Daniel
2024-03-16 03:46:06 +11:00
committed by GitHub
parent 2065897dc6
commit 720d24e185
3 changed files with 21 additions and 4 deletions

View File

@@ -13,7 +13,7 @@ export function destroyAllDataPermanently(fast) {
Object.keys(AppCache.cache).map(appId => {
const app = AppCache.get(appId);
const deletePromises = [];
if (app.cacheAdapter) {
if (app.cacheAdapter && app.cacheAdapter.clear) {
deletePromises.push(app.cacheAdapter.clear());
}
if (app.databaseController) {