Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can the rails tmp/cache/assets files be safely deleted?

I seem to have a TON of them in subfolders named for example

sprockets%2F76920e6913c3390459175ac8e6dfd44a3

They seem to contain binary data.

What are they for, why are there so many of them and most importantly, can these be safely removed? They take forever to scp.

like image 786
dsp_099 Avatar asked Jun 07 '13 16:06

dsp_099


Video Answer


2 Answers

Yep! You can delete the whole tmp directory and it will get recreated.

like image 155
Eric Wood Avatar answered Oct 17 '22 05:10

Eric Wood


Yes, you can safely delete it.

The best way to delete will be running the following in the rails console:

Rails.cache.clear
like image 3
Guy Dubrovski Avatar answered Oct 17 '22 05:10

Guy Dubrovski