EspoCRM – Open Source CRM Application
PHP calendarcontactscrmcrm-platformcrm-systemcustomer-portalcustomer-supportcustomizabledocumentsemail-marketingkanbanleadsopen-sourcephpplatformsales-automationsingle-page-applicationsupport
Clear cache try cache
Yurii67e24911b5b1
diff --git a/application/Espo/Core/DataManager.php b/application/Espo/Core/DataManager.phpindex 4b30a9df76..a409586a79 100644--- a/application/Espo/Core/DataManager.php+++ b/application/Espo/Core/DataManager.php@@ -117,9 +117,15 @@ class DataManagerthrow new Error("Could not clear system cache.", previous: $e);}- $dataCache = $this->dataCacheProvider->get();+ try {+ $dataCache = $this->dataCacheProvider->get();+ } catch (Throwable $e) {+ $this->log->error("Could not get application data cache.", ['exception' => $e]);++ $dataCache = null;+ }- if ($this->systemDataCache !== $dataCache) {+ if ($dataCache && $this->systemDataCache !== $dataCache) {try {$dataCache->clearAll();} catch (PersistenceError $e) {