mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
use lock ports_purge in ports_purge rather than syslog_purge lock (#15135)
This commit is contained in:
@@ -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');
|
||||
|
Reference in New Issue
Block a user