ndbroadbent / turbo-sprockets-rails3

Speeds up your Rails 3 assets:precompile by only recompiling changed files, and only compiling once to generate all assets
MIT License
975 stars 78 forks source link

Bring back CLEAN_EXPIRED_ASSETS environment variable #60

Closed GUI closed 10 years ago

GUI commented 11 years ago

There used to be a CLEAN_EXPIRED_ASSETS environment variable that allowed for cleaning expired assets at the same time as the precompile task was being executed. It was removed in 0171cf06bdd5aad1fd72ed6f44ff419bd8b42ce7 due to Heroku not supporting these environment variables. However, I would still find this very useful for our environment, so this pull request brings back that functionality.

Allowing this to execute at the same time as the precompile task can save the overhead of having to execute two separate rake tasks (and loading the whole Rails environment inside each one). We're currently looking to make the switch to JRuby for a few projects and this time savings becomes even more significant there since JRuby is slower to startup new processes.

ndbroadbent commented 10 years ago

Looks good, sorry for the delay, merged

ndbroadbent commented 10 years ago

Released in 0.3.13