Skip to main content
Ask A Question
You’re not receiving notifications from this thread.

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

Rails • Asked by Jacob Hedengren
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!

Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 30,005+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.