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

    Joined:
    Jun 29, 2004
    Messages:
    110
    Likes Received:
    0
    Trophy Points:
    16
    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
     
    #1 orty, Mar 22, 2009
    Last edited: Mar 22, 2009
Loading...

Share This Page