[Legacy] Symfony Cache - Add check for installing

This commit is contained in:
Jack Anderson 2023-12-06 09:16:51 +00:00
parent ccc225cb36
commit f01cfeff6d
2 changed files with 3 additions and 2 deletions

View file

@ -33,9 +33,9 @@ class CacheManager
public function markAsNeedsUpdate($key): void
{
global $db, $sugar_config;
global $db;
if (isFalse($sugar_config['installer_locked']) || !isset($sugar_config['dbconfig']['db_name'])) {
if (!empty($GLOBALS['installing']) || isTrue($_REQUEST['post_install'])) {
return;
}

View file

@ -87,6 +87,7 @@ class PostUpgrade
$_REQUEST = [];
$_REQUEST['addTaskReminder'] = 'remind';
$_REQUEST['post_install'] = true;
$this->checkConfigForPermissions();
$this->checkLoggerSettings();