My cache directories under WordPress are getting huge. Especially the simple tag directory where LS will simply hang. I’m wondering if that has anything to do with my site spawning a ton of apache processes.
Is there an automatic way of clearing this cache every few days?
You could probably write up a crontab comment to delete files within the subdirectory. Not sure what platform your using so I can’t give a specifc answer. Here’s a google search though to get you started.
You may want to bounce this off your host by the way. Some hosts may have an issue with cron commands deleting files like that.
I don’t think a crontab will cut it. I’m on my own dedi. A simple “rm” with verbose on the simpletags dir showed thousands of files being deleted every minute and it lasted around 30-45 minutes to complete.
I disabled the default wordpress cache in wp-config and now my server is running stable. Before, apache would generate an insane amount of processes before crippling the server.
Is this a wordpress object cache issue or a simpletags wordpress caching issue?
(WordPress also had huge amounts of cache files, but not as many as simpletags which would generate thousands in seconds.)