]> git.proxmox.com Git - pve-manager.git/commit
api: node status: cache boot mode info
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 22 Nov 2023 15:07:09 +0000 (16:07 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 22 Nov 2023 15:09:15 +0000 (16:09 +0100)
commit92759ae1b451a41183f5bf32b181e387199c23f6
treedc1e6d27931284997c7d242c1b285018ea3e39d4
parent01df797d0351b430a9dc3599e42705f5cb0e1e80
api: node status: cache boot mode info

it's not that expensive but we call the endpoint that returns the boot
mode info very frequently, and EFI vars are provided by the firmware,
and there are lots of known cases where firmware was just a plain
mess.

So, don't risk that overly frequent reads will cause some weird side
effect and rather just cache the whole info, it cannot change without
a reboot anyway.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/API2/Nodes.pm