mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 01:05:39 +02:00
Avoid check for UM messages more often than 2h
This commit is contained in:
parent
967f7ac239
commit
cc23b8310f
@ -2394,6 +2394,10 @@ class ConsoleSupervisor
|
||||
return;
|
||||
}
|
||||
|
||||
// Only ask for messages once every 2 hours.
|
||||
$future = (time() + 2 * SECONDS_1HOUR);
|
||||
config_update_value('last_um_check', $future);
|
||||
|
||||
$messages = update_manager_get_messages();
|
||||
if (is_array($messages) === true) {
|
||||
$source_id = get_notification_source_id(
|
||||
|
Loading…
x
Reference in New Issue
Block a user