[#eng-3897] don't update cachedStats unless the request was successful