Var/cache

I am having problems with some of my Cs-Cart sites growing huge amounts of files in the var/cache folder. Some to the tune of over 1 million files in there!! Is this normal. The sites are fairly large. I have a cron job on the server to clear the cache, but that takes 6+ hours to remove them all… and it fills right back up again… at the rate of hundreds per minute. Seems like its mostly with 3.0.6 or version 4.x



Has anyone else experienced this problem and have ways to resolve it?

Search the forum for answers but biggest cause is product features and multiple languages. Overuse of these can cause rapid growth of the cache. Your cron job should do:

mv var/cache var/Xcache;rm -r var/Xcache


This will prevent it from blocking on IO activity while the files are being removed.