Do not write current time before checking if cache is expired

The update feed never expires as the current time is stored into the settings right before the expiration check.
Closes https://github.com/owncloud/core/issues/4824