Can the rails tmp/cache/assets files be safely del

2019-04-03 07:17发布

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.

2条回答
够拽才男人
2楼-- · 2019-04-03 07:35

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

查看更多
虎瘦雄心在
3楼-- · 2019-04-03 07:38

Yes, you can safely delete it.

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

Rails.cache.clear
查看更多
登录 后发表回答