Home

About

Archives

Contact

Recent Comments

Forums

Store

Current Article

How to purge bad cache from SQUID

By Reaper-X on Sep 17, 2006 in Guide, Internet Tools, Open Source, Squid, Tutorials

If you’re using Squid Cache Proxy as your own proxy server, maybe you’ve experience Squid always returning the old cache even if the website itself already changed. If that’s the case then the only solution is by Purging the old cache from Squid cache. And there’s two method to do this. The first method is by deleting all of your squid cache but this would cause all of your cache lost and i don't think you want that happen, right ? But don't worry there’s other alternative and that’s by using PURGE command on squid.

As a side note this is for Windows user who use Squid as their cache proxy, most Linux users already know about this ;) .. okay here’s the step. First thing is open the squid.conf in your squid configuration directory, for example C:\Squid\etc\squid.conf and add these lines if it's not already there.

acl PURGE method PURGE
http_access allow PURGE localhost
http_access deny PURGE

After adding these lines you can restart your squid service manually or you can just type below line from the command prompt

x:\squid\sbin\squid.exe -n Squid -f x:\squid\etc\squid.conf -k reconfigure

Where X is the path to the squid executable, to force reconfiguring squid without the need to restart squid service. And to purge the cache, you can simply type this :

X:\squid\bin\squidclient.exe -h 127.0.0.1 -m PURGE http://www.yourtargetwebsite.com/

The -h parameter, it's not required if you run squid from localhost and don't forget to replace the target website with the any website you want squid to purge from it's cache also remember to add the last trailing slash, because it's important or squid will return object not found like below :

HTTP/1.0 404 Not Found
Server: squid
Date: Sun, 17 Sep 2006 03:44:22 GMT
Content-Length: 0

And if you do it correctly Squid will return HTTP 200 OK like below :

HTTP/1.0 200 OK
Server: squid
Date: Sun, 17 Sep 2006 03:44:43 GMT
Content-Length: 0

Ok that’s all about it … hopefully it’ll help you to fix your problem with your squid cache ;)

Related Posts

Related Posts

Complete Guide on Installing and Configuring Squid Proxy Server for Windows

Squid 2.6 Stable 3 Released

Australia Proxy for those having connection problems

Windows XP SP2 Memory usage set to system cache, not good for me

Do you like to spoof your user-agent ?

Blocklist for your web content filtering software

Guide to filter ads using Squid and free redirector on Windows

Digg Protection using htaccess

Subscribe

| Share it

| Post Options

Subscribe options

Website RSS Feed

Website Comments RSS Feed

This Post Comments RSS Feed

Share this post

Stumble this post

Bookmark this post on Del.icio.us

Submit this post to Digg

Submit this post to Reddit

Post options

Print this

Trackback URL

Post a Comment

Name (required)

E-mail (will not be published) (required)

Website

Line and paragraph breaks automatic, e-mail address never displayed, avoid using spammy words or phrases to prevent your comment from going into the oblivion, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Random Quotes

We are born naked, wet and hungry. Then things get worse.

Random Posts

Spamato Spam Filter System
Spamato is an extendable spam filter system written in Java. It exists in different flavors and runs

Learning to use Centos distro
Previously i said that i just installed Ubuntu to run as a guest host under my Windows XP box via VM

Hardening Wordpress with Mod Rewrite and htaccess
It’s been a while since the last time i wrote tips or whatever you called it :P &hel

Adsense Display Issue or My adsense check has been stolen ?
Yesterday i just emailed the adsense team regarding my adsense payment for January, because on the p

Mangos 4577, ScriptDev2 140 with PSDB and UDB work with WoW 2.1.3 to 2.2.3
Another WoW Mangos Release, and this time the WoW Client Supported is from WoW 2.1.3 into 2.2.3, but

Recent Posts

Tales of Vesperia, a J-RPG for XBOX 360

WoWAddicts WoW Server Live!

Oatmans’ Wrath of the Lich King Release! Revision:1

Reaper-X UR1 Arcane-Fire for WoW Client (2.4.3)

Arcane-Fire UR1 MaNGOS (2.4.3)

New Server Announced

MaNGOS 6245 (UDB + PSDB), ScriptDev2 r474

PS3 2.40 System Update Error!

Set up Caching Nameserver on Windows using BIND

Reaper-X Wrath of the Lich King! Should Reaper-X.com Support It?

Recent How to

Set up Caching Nameserver on Windows using BIND

How to Compile Mangos and Scriptdev2 for Windows

Do you still need to use Megaupload Proxy to bypass Megaupload?

How to set up public WoW Server

Reaper Mangos Installation / Upgrade Guide

Reaper Mangos FAQ

Converting FLV file into another format

Creating 2 Realmd in WoW Mangos Private Server

4 Things to do after creating your first Website / Blog ever

WoW Mangos Map, VMaps and DBC Extraction Guide

Latest Forum Posts

devind on "npc question"

Pitje on "npc question"

devind on "npc question"

Chrono on "Server problems"

Pitje on "npc question"

Pitje on "Connection Issues - Ports, hosts etc"

parh on "Server problems"

parh on "realm logon loop"

parh on "Connection Issues - Ports, hosts etc"

Chrono on "Server problems"

Random Video

Wario Land: Shake it!

Not So Random Images

Popular Posts

WoW Mangos GM (Game Master) Commands

Creating WoW Private Server the easier way (perhaps)

How to use PCSX2 the Playstation 2 Emulator

How to Configure MaNGOS the World of Warcraft Emulator

MySQL Installation and Configuration - Setting up Private WoW Server

Configuring Mangos for TBC Server or WoW Classic Server - Setting up Private WoW Server

Creating 2 Realmd in WoW Mangos Private Server

WoW Mangos Map, VMaps and DBC Extraction Guide

Recent Software

Oatmans’ Wrath of the Lich King Release! Revision:1

Reaper-X UR1 Arcane-Fire for WoW Client (2.4.3)

Arcane-Fire UR1 MaNGOS (2.4.3)

MaNGOS 6245 (UDB + PSDB), ScriptDev2 r474

Reaper-X Wrath of the Lich King! Should Reaper-X.com Support It?

nForce 15.17 and GeForce 175.16 Driver has been released

Reaper MaNGOS 5953 with ScriptDev 414|Server Compatible With 2.4.2 (UDB ONLY!)

Reaper MaNGOS 5931 with ScriptDev 412|Server Compatible With 2.4.2 (UDB ONLY!)

Miscellaneous

About
What this site all about, who's behind this site? Get your answer here

Contact
Interested to get in touch with me directly?

Forums
Well it's a forum of course

Terms of Use
Standard terms of use of course, except for scrappers website ;)

Privacy Policy
Just in case you want to see the privacy policy of this site

Copyright © Reaper-X .:[ ID ]:. | Terms of Use | Privacy Policy | 22 queries. 1.825 seconds.