mirror of
https://github.com/NixOS/nix
synced 2025-06-28 17:51:15 +02:00
rename the options to mention it's a narinfo TTL as disk cache is used all over the place for other operations
This commit is contained in:
parent
33b08899d5
commit
62d75ad3e1
2 changed files with 6 additions and 6 deletions
|
@ -113,8 +113,8 @@ public:
|
|||
SQLiteStmt(state->db,
|
||||
"delete from NARs where ((present = 0 and timestamp < ?) or (present = 1 and timestamp < ?))")
|
||||
.use()
|
||||
(now - settings.ttlNegativeDiskCache)
|
||||
(now - settings.ttlPositiveDiskCache)
|
||||
(now - settings.ttlNegativeNarInfoCache)
|
||||
(now - settings.ttlPositiveNarInfoCache)
|
||||
.exec();
|
||||
|
||||
debug("deleted %d entries from the NAR info disk cache", sqlite3_changes(state->db));
|
||||
|
@ -183,8 +183,8 @@ public:
|
|||
auto queryNAR(state->queryNAR.use()
|
||||
(cache.id)
|
||||
(hashPart)
|
||||
(now - settings.ttlNegativeDiskCache)
|
||||
(now - settings.ttlPositiveDiskCache));
|
||||
(now - settings.ttlNegativeNarInfoCache)
|
||||
(now - settings.ttlPositiveNarInfoCache));
|
||||
|
||||
if (!queryNAR.next())
|
||||
return {oUnknown, 0};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue