eAccelerator tmp

sux0r

Well-Known Member
#1
Can you give instructions on how to creat a cron to delete all contents of the eaccelerator cache folder ?

/dev/shm/eaccelerator/

~Thanks :)
 

webizen

Well-Known Member
#2
Here is an example. You can put it in /etc/crontab as follows:
Code:
0 * * * * root find /dev/shm/eaccelerator -type f -mmin +60 -delete 2>/dev/null
Basically it removes any cache file that is older than 60 mins (a.k.a. 1 hour) to be sure stale. You can replace the duration (-mmin +60) with however you think the stale cache may be.
 
Last edited:
Top