# Cache: fix unnecessary cache misses · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/6e292f66db8e7b85ea8b116872b3ca074db7885a)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 6e292f66db8e7b85ea8b116872b3ca074db7885a

Requested commit: 6e292f66db8e7b85ea8b116872b3ca074db7885a

Commit: 6e292f66db8e7b85ea8b116872b3ca074db7885a

Tree: 77c5406e95adf470bc7cdd473cc683c1b1c6f3ab

Author: Jacob Young

Committer: Jacob Young

## Message

```
Cache: fix unnecessary cache misses

With the old logic, it was possible for a bunch of processes to queue up
to update a cache entry, and then each to do so one at a time.  Now, it
rechecks whether there still a cache miss or another process has
completed the work in the interim.

```

## Parents

- [fae6290387850bfddbe4e9c1255750a65568b763](https://git.cafe/gitcafe/zig/commit/fae6290387850bfddbe4e9c1255750a65568b763?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/6e292f66db8e7b85ea8b116872b3ca074db7885a?format=markdown)
