HashNuke / heroku-buildpack-elixir

Heroku Buildpack for Elixir with nitro boost
MIT License
810 stars 304 forks source link

place all stack-dependent cache folders under one root folder #201

Closed fivetanley closed 3 years ago

fivetanley commented 3 years ago

This way the cache can be reliably cleared without having to maintain a list of all the different cache directories between multiple files.

The erlang cache wasn't changing when the stack changed due to the clean_cache not knowing that there were files for Erlang in ${cache_path}/OTP-*.zip (and elixir in ${cache_path}/elixir*.zip) .

This also adds a elixir_cache_path and a erlang_cache_path functions for allowing us to keep to track of the Elixir/Erlang caches in one central place.

fixes #197

jesseshieh commented 3 years ago

Thanks!