Check explicitly for update errors

If we don't actually update a row, we've probably had a race condition with
updating. The cache should be updated accordingly.