All threads / Rails bootsnap-compile-cache and other files all of a sudden appears

Ask A Question

Notifications

You’re not receiving notifications from this thread.

Rails bootsnap-compile-cache and other files all of a sudden appears

Jacob Hedengren asked in Rails
Hi everyone,

I am a bit confused; whether I am using Rails 5.1.4 or upgrading to 5.2.0.rc1 (Ruby version is 2.5.0) a lot of new files have all of a sudden appeared in my apps and I am unsure of the impact they have on my application.

First of all there are hundreds of strange files created in subfolders under temp/cache/bootsnap-compile-cache. They all appear to just contain strange characters and I don't really understand the purpose of the files being created or why they all of a sudden appears after 1 year creating many apps.

log/development.log, tmp/cache/, tmp/restart.txt are all new files/folders appearing all of a sudden. Can someone please explain what the reason for this might be?

Thanks a lot in advance!

/ Jacob
Hey Jacob,

Those files are from the new bootsnap gem. They're caching your application's require paths and things in a binary format so your app boots WAY faster. You don't need them stored in your git repo. 
Thanks a lot for making this more clear to me Chris! I appreciate that!
Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 37,629+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2020 GoRails, LLC. All rights reserved.