Merge branch 'ent-7795-victor-eres-muy-lento-como-la-consola-de-pandora' into 'develop'
Avoid check for UM messages more often than 2h See merge request artica/pandorafms!4290
This commit is contained in:
commit
c19e9795d0
|
@ -2394,6 +2394,10 @@ class ConsoleSupervisor
|
||||||
return;
|
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();
|
$messages = update_manager_get_messages();
|
||||||
if (is_array($messages) === true) {
|
if (is_array($messages) === true) {
|
||||||
$source_id = get_notification_source_id(
|
$source_id = get_notification_source_id(
|
||||||
|
|
Loading…
Reference in New Issue