use lock ports_purge in ports_purge rather than syslog_purge lock (#15135)

This commit is contained in:
Peter Childs
2023-07-05 22:40:23 +09:30
committed by GitHub
parent e486ef4c22
commit 2fada03570

View File

@@ -136,7 +136,7 @@ if ($options['f'] === 'device_perf') {
if ($options['f'] === 'ports_purge') {
if (Config::get('ports_purge')) {
$lock = Cache::lock('syslog_purge', 86000);
$lock = Cache::lock('ports_purge', 86000);
if ($lock->get()) {
\App\Models\Port::query()->with(['device' => function ($query) {
$query->select('device_id', 'hostname');