magic-nix-cache-action icon indicating copy to clipboard operation
magic-nix-cache-action copied to clipboard

Is it possible to avoid caching tiny outputs?

Open Cloudef opened this issue 1 year ago • 2 comments

I'm looking at my caches and there's lots of very tiny objects. I'm not sure if it's possible to skip caching these without causing rebuild of bigger outputs? If there is a way, it could help with amount of api calls to github as well.

Cloudef avatar Jan 14 '24 09:01 Cloudef

Agreed, I've seen caches amounting to 200 Bytes (not even KBs, bytes!) being set. The build time for tiny objects is insignificant in most cases, the post action of caching adds to Github API calls + time (1-2 second per object, even for < 200 Byte objects).

arvindpunk avatar Mar 15 '24 10:03 arvindpunk

I kept hitting https://github.com/NixOS/nix/issues/10092 with the substitutor getting disabled too frequently.

phanirithvij avatar Jun 12 '24 06:06 phanirithvij