Massive size of cache folder

Lakjin

Active Member
Is it normal for `apps/common/runtime/cache` to be 50GB+? How do I stop it from being this large?
 

Lakjin

Active Member
That's quite excessive. I don't think my system is that busy. Less than 1m emails a day. I will try clearing the cache, but if this continues, is there any way to disable the cache?
 

Lakjin

Active Member
So in the hour that I ran the clear cache command, ~2GB of cache came back after clearing. We don't even have any active campaigns running right now. Only webhooks from our email service provider. Surely this cannot be expected behavior?
 

twisted1919

Administrator
Staff member
I don't see this as a problem, there is a price to pay for performance in multithreaded environments, and in this case, this is one of these things.
You can switch to redis caching, allow it to store like X GB then use an eviction policy to remove old data, this way you'll always have at most x GB of data in cache.
 

Lakjin

Active Member
I just setup a cron to clear cache every hour. I am all for performance, but the cache MailWizz uses seems excessive.
 
Top