Clean cache in eaccelerator on Linux

Monday, 5th July 2010

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

Share this on:

Download PDFDownload PDF

Tags:

5 Responses to “Clean cache in eaccelerator on Linux”

  1. chairs says:
    Google Chrome 4.0.221.7 Google Chrome 4.0.221.7 Windows 7 Windows 7
    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 Comment
  2. Mitzie Shigemitsu says:
    Firefox 3.5.3 Firefox 3.5.3 Windows 7 Windows 7
    Mozilla/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 Comment
  3. Wincenty says:
    Firefox 2.0.0.4 Firefox 2.0.0.4 Windows XP Windows XP
    Mozilla/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 Comment
  4. wikiterious.com says:
    Internet Explorer 9.0 Internet Explorer 9.0 Windows 7 x64 Edition Windows 7 x64 Edition
    Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)

    Thanks for sharing your info. I truly appreciate
    your efforts and I am waiting for your further post thanks once again.

    View CommentView Comment

Leave a Reply

CommentLuv badge