how to do caching on squid?
hello,
can anybody help me with my squid? im using squid v2.5. my problem was its very slow when accesing the internet. here is my sample access.log: 1077520202.618 393 192.168.1.20 TCP_MISS/200 2704 GET http://www.blackthornesw.com/bthome/...110_hbtn_a.gif - DIRECT/209.150.237.98 image/gif 1077520202.717 390 192.168.1.20 TCP_MISS/200 2709 GET http://www.blackthornesw.com/bthome/...st110_hbtn.gif - DIRECT/209.150.237.98 image/gif 1077520202.864 346 192.168.1.20 TCP_MISS/200 2709 GET http://www.blackthornesw.com/bthome/...110_hbtn_a.gif - DIRECT/209.150.237.98 image/gif 1077520203.016 450 192.168.1.20 TCP_MISS/200 8976 GET http://www.blackthornesw.com/bthome/...ust110_bnr.gif - DIRECT/209.150.237.98 image/gif 1077520290.526 406 192.168.1.20 TCP_MISS/302 434 GET http://www.google.com/ - DIRECT/216.239.57.104 text/html As i checked what TCP_MISS means, it says that "The requested object is not in the cache" so does it means y caching does not work? Maybe that is the reason why accessing internet is very slow? I already installed cachemgr. could you please help me. thanks. regards, gigi |
Have you been to any of the sites listed? Try going to google.com then close your brower and open it back up and go to google.com again and look at the logs and see if you have any hits.
Squid does not cache everything, it will cache most images and static pages (.html) it does not cache anything that has a "?" in it like php or asp pages that have variables in the url. If you are getting any hits you are probably set up good enough, you don't have to change much from the default squid config. |
hi cli_man,
Yes, i have been to those sites many times and even google. I tried accessing www.google.com it this is what i got from access.log 1077596013.762 31046 192.168.1.20 TCP_MISS/302 434 GET http://www.google.com/ - DIRECT/216.239.57.104 text/html 1077596024.672 10909 192.168.1.20 TCP_MISS/200 1612 GET http://www.google.com.ph/ - DIRECT/216.239.57.99 text/html 1077596027.972 471 192.168.1.20 TCP_MISS/200 4024 GET http://www.google.com/ - DIRECT/216.239.57.99 text/html How come it still TCP_MISS? does it mean www.google.com site is not on my cache? what else should i check? many thanks gigi |
All times are GMT -5. The time now is 06:24 PM. |