mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-30 01:26:15 +02:00
BinaryCacheStore: Insert new paths into the disk cache
This commit is contained in:
parent
451ebf24ce
commit
c0c4ddcd9c
1 changed files with 4 additions and 0 deletions
|
@ -8,6 +8,7 @@
|
|||
#include "sync.hh"
|
||||
#include "worker-protocol.hh"
|
||||
#include "nar-accessor.hh"
|
||||
#include "nar-info-disk-cache.hh"
|
||||
|
||||
#include <chrono>
|
||||
|
||||
|
@ -98,6 +99,9 @@ void BinaryCacheStore::addToCache(const ValidPathInfo & info,
|
|||
state_->pathInfoCache.upsert(narInfo->path, std::shared_ptr<NarInfo>(narInfo));
|
||||
}
|
||||
|
||||
if (diskCache)
|
||||
diskCache->upsertNarInfo(getUri(), std::shared_ptr<NarInfo>(narInfo));
|
||||
|
||||
stats.narInfoWrite++;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue