1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 00:11:17 +02:00

pathInfoCache: Respect disk cache TTLs #3398

This commit is contained in:
Robert Hensing 2020-03-11 20:04:47 +01:00
parent 9080d5d924
commit 3f55f8a8fb
4 changed files with 39 additions and 11 deletions

View file

@ -106,7 +106,7 @@ void BinaryCacheStore::writeNarInfo(ref<NarInfo> narInfo)
{
auto state_(state.lock());
state_->pathInfoCache.upsert(hashPart, std::shared_ptr<NarInfo>(narInfo));
state_->pathInfoCache.upsert(hashPart, PathInfoCacheValue { .value = std::shared_ptr<NarInfo>(narInfo) });
}
if (diskCache)