I’ve recently had to clean the task to clean up some eaccelerator php cache.
To manage that directly frm php I had to use the eaccelerator_clean() function
There is also another function which could be directly invoked from within a php script called:
I suggest you also take a look at eaccelerator documentation which deals with cleaning and showing info about eaccelerator’s cache .
Bare in mind that you will be required to set the eaccelerator.allowed_admin_path = directive within your php.ini in order to start using:
eaccelerator.allowed_admin_path should point to some path from wherein scripts will be allowed to include the aforementioned 2 functions.
Another possible way to cleanse your eaccelerator cache is directly via deleting the Eaccelerator stored files on the server hard disk
To do so you will have to issue a command similar to:
debian-server:~# rm -rf /var/cache/eaccelerator/*;
You might need to substitute /var/cache/eaccelerator to the directory where you have configured eaccelerator to store it’s cache.
In order to find out which directory is configured for eaccelerator cache dir on Debian Linux, issue the command:
debian-server:~# grep -i eaccelerator.cache.dir /etc/php5/apache2/php.ini
On many other distributions it’s very probable that the php.ini file is located in /etc/php.ini so if you want to check the eacelerator.cache.dir location on other Linux distrubutions consider using:
linux:/root# grep -i eaccelerator.cache.dir /etc/php.ini