• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

How do I delete the cache of Squid

Scheduled Pinned Locked Moved General pfSense Questions
14 Posts 5 Posters 49.0k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F
    firefox
    last edited by Jul 1, 2012, 4:06 AM

    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

    1 Reply Last reply Reply Quote 0
    • D
      dataking
      last edited by Jul 1, 2012, 4:16 AM

      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

      1 Reply Last reply Reply Quote 0
      • F
        firefox
        last edited by Jul 1, 2012, 4:46 AM

        i am also using squid3
        didnt find clear cache option

        how do i use ssh ?

        1 Reply Last reply Reply Quote 0
        • N
          noremacyug
          last edited by Jul 1, 2012, 6:51 AM

          @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.

          1 Reply Last reply Reply Quote 0
          • F
            firefox
            last edited by Jul 1, 2012, 2:20 PM

            i am using linux ubuntu

            Is there a parallel software to winscp for linux

            1 Reply Last reply Reply Quote 0
            • M
              Metu69salemi
              last edited by Jul 1, 2012, 4:02 PM

              scp on command line at least if not any other

              1 Reply Last reply Reply Quote 0
              • D
                dataking
                last edited by Jul 1, 2012, 5:23 PM

                @firefox:

                i am using linux ubuntu

                Is there a parallel software to winscp for linux

                Open up a terminal and

                ssh admin@yourpfssensebox
                
                1 Reply Last reply Reply Quote 0
                • F
                  firefox
                  last edited by Jul 2, 2012, 6:26 AM

                  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 ?

                  1 Reply Last reply Reply Quote 0
                  • M
                    Metu69salemi
                    last edited by Jul 2, 2012, 3:53 PM

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

                    1 Reply Last reply Reply Quote 0
                    • D
                      dataking
                      last edited by Jul 2, 2012, 4:07 PM

                      @Metu69salemi:

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

                      `cd /var/squid/cache`, `rm -rf *`??
                      
                      1 Reply Last reply Reply Quote 0
                      • F
                        firefox
                        last edited by Jul 4, 2012, 3:41 AM

                        i get an error says
                        there to many Parameters

                        `cd /var/squid/cache`, `rm -rf *`??
                        
                        1 Reply Last reply Reply Quote 0
                        • M
                          Metu69salemi
                          last edited by Jul 4, 2012, 5:11 AM

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

                          
                          cd /var/squid/cache
                          
                          

                          and then

                          rm -rf *
                          
                          1 Reply Last reply Reply Quote 0
                          • F
                            firefox
                            last edited by Jul 6, 2012, 6:10 AM

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

                            1 Reply Last reply Reply Quote 0
                            • F
                              fluca1978
                              last edited by Jul 6, 2012, 6:16 AM

                              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).

                              1 Reply Last reply Reply Quote 0
                              14 out of 14
                              • First post
                                14/14
                                Last post
                              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                This community forum collects and processes your personal information.
                                consent.not_received