Skip to content

Commit

Permalink
added expiration for alerts cache::lock() (librenms#12375)
Browse files Browse the repository at this point in the history
  • Loading branch information
haydenseitz authored Dec 2, 2020
1 parent ff49d7c commit 25087a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alerts.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
echo "DEBUG!\n";
}

$alerts_lock = Cache::lock('alerts');
$alerts_lock = Cache::lock('alerts', \LibreNMS\Config::get('service_alerting_frequency'));
if ($alerts_lock->get()) {
$alerts = new RunAlerts();
if (! defined('TEST') && \LibreNMS\Config::get('alert.disable') != 'true') {
Expand Down

0 comments on commit 25087a6

Please sign in to comment.