Increase size of precompilation cache

I’m running a number of Pluto notebooks with heavy dependencies. I noticed that opening a not-so-old notebook almost always involves precompilation, suggesting that the package manager has somehow deleted the precompiled code from its .julia cache folder. I think there’s an option to tell Pkg to never gc, but that’s a bit drastic? Is there any other way to tune its behaviour, eg. by increasing the cache size?

1 Like

Set the environment variable JULIA_MAX_NUM_PRECOMPILE_FILES.

1 Like

Do you know if that’s the only logic that triggers a precompilation file deletion? Subjectively, its default of 10 doesn’t match my perception.