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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

eaccelerator Cache - Easy way to clear out?

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

  1. orty

    orty Well-Known Member

    Jun 29, 2004
    Likes Received:
    Trophy Points:
    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):
    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).

    #1 orty, Mar 22, 2009
    Last edited: Mar 22, 2009

Share This Page