Linux – How often should I clear the OpenX cache directory

cachelinuxopenxperformance

OpenX creates many small php files in /openx/var/cache. After some time, the amount of files is so big that it has an impact on server performance (the amount of files was so big that listing the files was not possible.)

My question is: How often should I clear the cache directory? Is it safe to delete cache files older than 2 or 3 days?

Best Answer

Those files are cached adds to be served. Don't worry if number of files is greated than the number of unique banners you have ever served - multiple files per banner are common.

You can delete the files as often as you like (even every 10 minutes if you feel like it :P) - if you do it too often the only penalty is slight performance decrease - if they are still needed the file will be generated when add is first served.