Previously if the curl failed, $lastmodified is set to a blank string. Later on, it'll unnecessarily try to install an update because the versions mismatch. See screenshot for an example log of this happening.
Additionally, now $lastmodified is cached so when fetchLastModifiedDate update is called, it'll always be the same version and not have a risk of failure.
Previously if the
curl
failed,$lastmodified
is set to a blank string. Later on, it'll unnecessarily try to install an update because the versions mismatch. See screenshot for an example log of this happening.Additionally, now
$lastmodified
is cached so whenfetchLastModifiedDate update
is called, it'll always be the same version and not have a risk of failure.