Cache read-only filesystem problem

I have a problem with the cache.
The /var/cache folder has about 30 GiB with 5 millions files.
Sometimes the filesystem gets mounted as read-only because of rapid file generation.
It’s a shop with 1000 products.
Many products have 100+ variants.
Who can I resolve this issue?