How do I delete the cache of Squid



  • i install this version


    2.0.2-RC1 (i386)
    built on Mon May 21 00:20:12 EDT 2012
    FreeBSD 8.1-RELEASE-p9


    on  an old computer with 80gb hdd
    i can access to the pfsense only from webgui
    from another computer

    on the computer i install pfsense i have only dos window with 14 options

    the Disk usage show 34%
    how can i see this files
    and how can i delete this files

    i try to restart squid and it didnt work



  • There should be an option on the squid cache to clear it, but I don't see it (I'm using the squid3 package).

    SSH into your pfsense and cd /var/squid/cache, rm -rf *.  lol



  • i am also using squid3
    didnt find clear cache option

    how do i use ssh ?



  • @firefox:

    i am also using squid3
    didnt find clear cache option

    how do i use ssh ?

    it's easy.  go to "system -> advanced -> admin access" and make sure to tick the "enable secure shell" box.  then click save.  next, download a program called winscp, its free.  once you've installed winscp, run it and click on "session" on the tree.  put in your "hostname" which will be your pfsense box ip, the default port number of 22 is what pfsense is set to unless you changed it somehow.  put your "root" username and password in and hit login.  you should get a prompt regarding a key or something, just accept it.  you can then browse your pfsense box's file system on the right pane.  the left pane is your computers file system.



  • i am using linux ubuntu

    Is there a parallel software to winscp for linux



  • scp on command line at least if not any other



  • @firefox:

    i am using linux ubuntu

    Is there a parallel software to winscp for linux

    Open up a terminal and

    ssh admin@yourpfssensebox
    


  • i use this command
    and i got to this

    1. Logout (SSH only)                                8) Shell
    2. Assign Interfaces                                9) pfTop
    3. Set interface(s) IP address                  10) Filter Logs
    4. Reset webConfigurator password      11) Restart webConfigurator
    5. Reset to factory defaults                    12) pfSense Developer Shell
    6. Reboot system                                    13) Upgrade from console
    7. Halt system                                        14) Disable Secure Shell (sshd)
    8. Ping host

    this is the same screen i have in the old computer i install pfsense
    how i can see squid cache from here ?



  • at least press 8 to go shell. But i don't know any further



  • @Metu69salemi:

    at least press 8 to go shell. But i don't know any further

    `cd /var/squid/cache`, `rm -rf *`??
    


  • i get an error says
    there to many Parameters

    `cd /var/squid/cache`, `rm -rf *`??
    


  • I've read this that you have to use several phases
    first

    
    cd /var/squid/cache
    
    

    and then

    rm -rf *
    


  • It did not do anything
    the mark go only one line down



  • You have to stop squid, then from  a shell the command

    squid -z
    

    should suffice (it recreates the swap area, and therefore should clean also the cache).


Locked