diff --git a/application/Espo/Resources/i18n/en_US/Admin.json b/application/Espo/Resources/i18n/en_US/Admin.json index 3f1f3e3126..1b9a416d12 100644 --- a/application/Espo/Resources/i18n/en_US/Admin.json +++ b/application/Espo/Resources/i18n/en_US/Admin.json @@ -236,6 +236,7 @@ "rebuildRequired": "Rebuild is required" }, "messages": { + "cacheIsDisabled": "Cache is disabled, the application will run slow. Enabled cache in the [settings](#Admin/settings).", "formulaFunctions": "More functions can be found in [documentation]({documentationUrl}).", "rebuildRequired": "You need to run rebuild from CLI.", "upgradeVersion": "EspoCRM will be upgraded to version **{version}**. Please be patient as this may take a while.", @@ -250,6 +251,7 @@ "selectExtensionPackage": "Select extension package", "extensionInstalled": "Extension {name} {version} has been installed.", "installExtension": "Extension {name} {version} is ready for an installation.", + "cronIsDisabled": "Cron is disabled, the application is not fully functional. Enable cron in the [settings](#Admin/settings).", "cronIsNotConfigured": "Scheduled jobs are not running. Hence inbound emails, notifications and reminders are not working. Please follow the [instructions](https://www.espocrm.com/documentation/administration/server-configuration/#user-content-setup-a-crontab) to setup cron job.", "newVersionIsAvailable": "New EspoCRM version {latestVersion} is available. Please follow the [instructions](https://www.espocrm.com/documentation/administration/upgrading/) to upgrade your instance." , "newExtensionVersionIsAvailable": "New {extensionName} version {latestVersion} is available.", diff --git a/application/Espo/Tools/AdminNotifications/Manager.php b/application/Espo/Tools/AdminNotifications/Manager.php index b3cdb381f8..3c074876e5 100644 --- a/application/Espo/Tools/AdminNotifications/Manager.php +++ b/application/Espo/Tools/AdminNotifications/Manager.php @@ -59,7 +59,23 @@ class Manager return []; } + if (!$this->config->get('useCache')) { + $notificationList[] = [ + 'id' => 'cacheIsDisabled', + 'type' => 'cacheIsDisabled', + 'message' => $this->language->translateLabel('cacheIsDisabled', 'messages', 'Admin'), + ]; + } + if ($this->config->get('adminNotificationsCronIsNotConfigured')) { + if ($this->config->get('cronDisabled')) { + $notificationList[] = [ + 'id' => 'cronIsDisabled', + 'type' => 'cronIsDisabled', + 'message' => $this->language->translateLabel('cronIsDisabled', 'messages', 'Admin'), + ]; + } + if (!$this->isCronConfigured()) { $notificationList[] = [ 'id' => 'cronIsNotConfigured',