gitlab-org--gitlab-foss/changelogs/unreleased/zj-commit-cache.yml
Zeger-Jan van de Weg 3411fef1df
Cache commits on the repository model
Now, when requesting a commit from the Repository model, the results are
not cached. This means we're fetching the same commit by oid multiple times
during the same request. To prevent us from doing this, we now cache
results. Caching is done only based on object id (aka SHA).

Given we cache on the Repository model, results are scoped to the
associated project, eventhough the change of two repositories having the
same oids for different commits is small.
2017-10-27 12:49:11 +02:00

5 lines
94 B
YAML

---
title: Cache commits fetched from the repository
merge_request:
author:
type: performance