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:
eaccelerator_info()
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_clean()
and
eaccelerator_info()
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
eaccelerator.cache_dir="/var/cache/eaccelerator"
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
or
More helpful Articles
Tags: Clean cache in eaccelerator on Linux with PHP
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/532.2 (KHTML, like Gecko) Chrome/4.0.221.7 Safari/532.2
I have heard a lot on this discuss, but it seems to me that your point are the best.I like the post very much.
View CommentView CommentMozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3
Hello.This article was really fascinating, especially because I was investigating for thoughts on this topic last week.
View CommentView CommentMozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4
Nice Post. Thank U. 🙂
View CommentView CommentMozilla/5.0 (X11; U; Linux x86_64; en-us) AppleWebKit/531.2+ (KHTML, like Gecko) Version/5.0 Safari/531.2+ Debian/squeeze (2.30.6-1) Epiphany/2.30.6
I’m glad to help
View CommentView CommentMozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
Thanks for sharing your info. I truly appreciate
View CommentView Commentyour efforts and I am waiting for your further post thanks once again.