[squid-users] Purging Cache Question

From: OTR Comm <otrcomm@dont-contact.us>
Date: Sat, 28 Feb 2004 00:41:13 -0700

Hello,

Am I correct in understanding that the first thing that Squid does when
it receives a purge request (after it has verified proper authority,
host, port, etc.) is remove the cache reference from memory with
removeClientStoreReference(&sc, http) and then do the removal from
swap.state and the L2 directory by setting the ipcache_entry expire time
to squid_curtime in ipcacheInvalidate(const char *name)?

Also, how does ip_table get to ipcache_get(const char *name) in
ipcache.cc, and where is hash_lookup defined? That is from:

static ipcache_entry *
ipcache_get(const char *name)
{
    if (ip_table != NULL)
        return (ipcache_entry *) hash_lookup(ip_table, name);
    else
        return NULL;
}

Thanks,

Murrah Boswell
Received on Sat Feb 28 2004 - 01:09:05 MST

This archive was generated by hypermail pre-2.1.9 : Mon Mar 01 2004 - 12:00:03 MST