The eaccelerator itself has the automatic clearing function. The specific settings are as follows: eaccelerator. shm_ttl = "600"
When the eAccelerator fails to obtain the shared memory size of the new script, it will delete all script caches that cannot be accessed in the last "shm_ttl" seconds from the shared memory. The default value is "0". That is, no cached files are deleted from the shared files in the spring.
Eaccelerator. shm_prune_period = "600"
When the eAccelerator fails to get the shared memory size of the new script, it will try to delete the cache script earlier than "shm_prune_period" from the shared memory. The default value is "0". That is, no cached files are deleted from the shared files in the spring.
Therefore, if it is not set to 0, it will be automatically cleared. If it is set to 0, it will be manually cleared.
Manually clear the directory. You can directly cache sub-directories in the directory and restart the web service.
Or clear it in the eaccelerator panel.
This article is excerpted from the linux Forum http://www.wdlinux.cn/bbs ~