1
0
Fork 0
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:
AmineChikhaoui 2018-04-06 11:05:15 +01:00
parent 33b08899d5
commit 62d75ad3e1
No known key found for this signature in database
GPG key ID: C0C8C84C15BCCD1C
2 changed files with 6 additions and 6 deletions

View file

@ -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};