That's probably because the cache is being overwritten, the DB query still returns the correct data:

```
>> repo = Repository.where(owner_name: "Aaron1011", name: "travis-npm-deploy").first
=> #<Repository id: 1356021>
>> build = repo.last_build_on("master")
=> #<Build id: 16326767>
>> build.state.to_sym
=> :failed
```