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.
  • Anyway of clearing the HTTP cache from the command line?? I'm familiar with doing this with native squid...

    Many thanks
    Bryan


    Hi Bryan !

    can u please try from ssh :

    ace75:/var/mdw/scripts # ./httpproxy restart
    :: Restarting httpproxy
    :: Stopping httpproxy                                                done
    :: Starting httpproxy                                                done
    ace75:/var/mdw/scripts # pwd
    /var/mdw/scripts
    ace75:/var/mdw/scripts #


    thanks
  • 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!
  • Bryan, what problem are you having with disk space?  If your cache gets larger than 25% of the partition, there's a problem because Astaro says that that's the fixed size.

    Cheers - Bob
     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
  • Bryan, what problem are you having with disk space?  If your cache gets larger than 25% of the partition, there's a problem because Astaro says that that's the fixed size.

    Cheers - Bob


    Really?

    /dev/disk/by-label/storage 1.6G  607M  885M  41% /var/storage

    1.2G chroot-http

    Something I'm doing wrong?

    Had a few instances last week where /var/storage has got to 100% and stopped the HTTP proxy working....
  • https://community.sophos.com/products/unified-threat-management/astaroorg/f/55/t/44263

    So, I'm guessing my comment doesn't apply because you aren't on 7.501.

    Cheers - Bob
     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA