Setting up tmpreaper
Tmpreaper is a system utility which can delete files in specified temporary directories
It is configured via /etc/tmpreaper.conf which is called from a /etc/cron.daily/ job
important directives below:
TMPREAPER_TIME=1h
TMPREAPER_PROTECT_EXTRA=''
TMPREAPER_DIRS='/tmp/. /var/www/heatwave/current/tmp/.'
TMPREAPER_DELAY='256'
TMPREAPER_ADDITIONALOPTIONS=''
Read more about it