Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

eaccelerator Cache - Easy way to clear out?

Discussion in 'General Discussion' started by orty, Mar 22, 2009.

  1. orty

    orty Well-Known Member

    Joined:
    Jun 29, 2004
    Messages:
    110
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Bend, Oregon
    cPanel Access Level:
    Root Administrator
    I have a server with a 2GB /tmp partition, and while the server is running fine, eaccelerator is gradually filling up the /tmp directory (1.5GB of the 2GB). Is there an easy way to clear out the cache that won't break stuff (I know an rm -rf will do the trick, but I worry that'll break something) or at least clean out the files that are older and unused/needed? I just basically want it to go through and clean out all the stuff that's older than a few days.

    Update about 20 minutes later: Found this little gem (only works on CentOS/RedHat systems):
    Code:
    tmpwatch --mtime --all 336 /tmp/eaccelerator
    Clears out all files modified older than two weeks ago in the eaccelerator folder. Worked like a chart, eaccelerator still appears to work fine, and /tmp free space is MUCH better (1.8GB free).

    -Jake
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #1 orty, Mar 22, 2009
    Last edited: Mar 22, 2009
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice