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.