NIXPACKS_NO_CACHE=1 still uses cache

Railway is still caching builds, despite system variable being set to not use them. Why is this?
Solution:
change a file and that will bust the cache
Jump to solution
9 Replies
Percy
Percy6mo ago
Project ID: 58a8cdcc-9801-4a0e-976f-d8a26bcdc8e6
Charles_
Charles_6mo ago
58a8cdcc-9801-4a0e-976f-d8a26bcdc8e6
Brody
Brody6mo ago
thats layer caching, you cant turn that off
Charles_
Charles_6mo ago
This cache is also being applied to some submodules I'm installing which means they aren't updating...
Solution
Brody
Brody6mo ago
change a file and that will bust the cache
Charles_
Charles_6mo ago
Thanks, I think that worked - would be nice to have env and/or UI button to do this though.
Brody
Brody6mo ago
i mean, if the file hasnt changed, i dont see a reason to bust the cache? i think your issue was elsewhere
Charles_
Charles_6mo ago
Your main repo could not change (which is all cache see's) but one of your dependencies could (installed in railway.toml via git clone) - it doesn't necessarily have full picture.
Brody
Brody6mo ago
ah gotcha