This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Clear HTTP Cache...

Anyway of clearing the HTTP cache from the command line?? I'm familiar with doing this with native squid...

Many thanks
Bryan


This thread was automatically locked due to age.
Parents
  • you can do it via Webadmin :-)
     
    and also from command line. I am not sure whether utm_kid´s solution is really deleting the cache - hmm, no, I am pretty sure it does NOT delete the cache.
     
    You should use "/var/mdw/scripts/httpproxy zap" instead. This is the command which is exactly doing what you want.
     
    BTW, Astaro is not using squid any more since version 7.1, i.e. for more than years now
     
    "zap" will do the following:
           echo -n ":: Zapping cache"
           $0 stop
           rm -rf /var/chroot-http/var/cache
           $0 start
           
     asg220:/var/log # /var/mdw/scripts/httpproxy  zap
    :: Zapping cache:: Stopping httpproxy                                 done
    :: Starting httpproxy                                                 done

  •        
     asg220:/var/log # /var/mdw/scripts/httpproxy  zap
    :: Zapping cache:: Stopping httpproxy                                 done
    :: Starting httpproxy                                                 done


    Brilliant, many thanks. I can now stick it in cron and not worry about disk space again!
Reply

  •        
     asg220:/var/log # /var/mdw/scripts/httpproxy  zap
    :: Zapping cache:: Stopping httpproxy                                 done
    :: Starting httpproxy                                                 done


    Brilliant, many thanks. I can now stick it in cron and not worry about disk space again!
Children
No Data