Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 02-23-2004, 03:49 AM   #1
Registered: Nov 2003
Posts: 30

Rep: Reputation: 15
how to do caching on squid?


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 TCP_MISS/200 2704 GET - DIRECT/ image/gif
1077520202.717 390 TCP_MISS/200 2709 GET - DIRECT/ image/gif
1077520202.864 346 TCP_MISS/200 2709 GET - DIRECT/ image/gif
1077520203.016 450 TCP_MISS/200 8976 GET - DIRECT/ image/gif
1077520290.526 406 TCP_MISS/302 434 GET - DIRECT/ 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.


Old 02-23-2004, 07:04 PM   #2
Registered: Apr 2002
Location: New York, USA
Distribution: Redhat 7.2, 9.0 Slackware 9.1
Posts: 428

Rep: Reputation: 30
Have you been to any of the sites listed? Try going to then close your brower and open it back up and go to 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.
Old 02-23-2004, 11:26 PM   #3
Registered: Nov 2003
Posts: 30

Original Poster
Rep: Reputation: 15
hi cli_man,

Yes, i have been to those sites many times and even google.

I tried accessing it this is what i got from access.log

1077596013.762 31046 TCP_MISS/302 434 GET - DIRECT/ text/html
1077596024.672 10909 TCP_MISS/200 1612 GET - DIRECT/ text/html
1077596027.972 471 TCP_MISS/200 4024 GET
- DIRECT/ text/html

How come it still TCP_MISS? does it mean site is not on my cache?

what else should i check?

many thanks



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
squid as a non caching proxy stephen_davies Linux - Newbie 4 08-04-2005 01:43 PM
caching with squid kernelvn Linux - Networking 2 07-18-2005 12:54 AM
Help to configure Squid Caching !!! brains_online Linux - Newbie 0 12-23-2004 10:27 AM
Squid caching refresh time wennie Linux - General 0 12-05-2004 04:47 AM
Squid caching _everything_ ivanatora Linux - Software 0 07-28-2004 02:40 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:04 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration