diff --git a/scripts/jobs/cron_tasks.php b/scripts/jobs/cron_tasks.php index b452c2d4..d0e260dd 100644 --- a/scripts/jobs/cron_tasks.php +++ b/scripts/jobs/cron_tasks.php @@ -166,6 +166,11 @@ while ($row = $result_tasks_stmt->fetch(PDO::FETCH_ASSOC)) { } $cronlog->logAction(CRON_ACTION, LOG_NOTICE, 'Running: chown -R ' . (int)Settings::Get('system.vmail_uid') . ':' . (int)Settings::Get('system.vmail_gid') . ' ' . escapeshellarg($usermaildir)); safe_exec('chown -R ' . (int)Settings::Get('system.vmail_uid') . ':' . (int)Settings::Get('system.vmail_gid') . ' ' . escapeshellarg($usermaildir)); + + // clear NSCD cache if using fcgid or fpm, #1570 + if (Settings::Get('system.mod_fcgid') == 1 || (int)Settings::Get('phpfpm.enabled') == 1) { + safe_exec('nscd -i group 1> /dev/null', false, array('>')); + } } }