Don't write to cache if queries fail