mirror of
https://github.com/NixOS/nix.git
synced 2025-12-01 06:31:00 +01:00
pathInfoCache: Respect disk cache TTLs #3398
This commit is contained in:
parent
2097983218
commit
d549250069
4 changed files with 50 additions and 10 deletions
|
|
@ -623,7 +623,7 @@ uint64_t LocalStore::addValidPath(State & state,
|
|||
|
||||
{
|
||||
auto state_(Store::state.lock());
|
||||
state_->pathInfoCache.upsert(storePathToHash(info.path), std::make_shared<ValidPathInfo>(info));
|
||||
state_->pathInfoCache.upsert(storePathToHash(info.path), PathInfoCacheValue(info));
|
||||
}
|
||||
|
||||
return id;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue