The cache needs read access to the entire repository to be able to correctly populate the cache.