I have a public/cache folder which has files and folders. How can I completely empty that folder using a rake task?
public/cache
Great answers here already. You might also be interested to know that Rails 5 has a rake task to do this built-in:
rake tmp:cache:clear # Clear cache files from tmp/