Cache, again as this is not crystal clear!

On the root level, that cache folder is the Symfony cache. There are Symfony console commands to clear it, but I think it is also ok to simply delete it and it gets rebuilt.

The public/legacy/cache is a different thing, that is a SuiteCRM folder and has many different types of contents, not all of them are ok to delete.

This was discussed here:

make sure you check out a link there that chris001 posted