set nix-cache-info to include WantMassQuery: 1 #201

Closed
opened 2025-04-26 01:02:21 +00:00 by jade · 1 comment
Owner

Substitution is extremely slow to query path presence if this is not set. https://cache.forkos.org/nix-cache-info is missing it. Thus it should be added.

Substitution is extremely slow to query path presence if this is not set. https://cache.forkos.org/nix-cache-info is missing it. Thus it should be added.
Owner

I changed nix-cache-info by hand and it returns WantMassQuery: 1 now:

# curl https://cache.forkos.org/nix-cache-info -i
HTTP/2 200 
server: nginx
date: Mon, 28 Apr 2025 18:11:09 GMT
content-type: text/x-nix-cache-info
content-length: 38
last-modified: Mon, 28 Apr 2025 18:08:05 GMT
accept-ranges: bytes
etag: "464eaf8ebcf5d27356c6511fa71504cb"

StoreDir: /nix/store
WantMassQuery: 1
I changed `nix-cache-info` by hand and it returns `WantMassQuery: 1` now: ~~~bash # curl https://cache.forkos.org/nix-cache-info -i HTTP/2 200 server: nginx date: Mon, 28 Apr 2025 18:11:09 GMT content-type: text/x-nix-cache-info content-length: 38 last-modified: Mon, 28 Apr 2025 18:08:05 GMT accept-ranges: bytes etag: "464eaf8ebcf5d27356c6511fa71504cb" StoreDir: /nix/store WantMassQuery: 1 ~~~
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: the-distro/infra#201
No description provided.