Squid internal overview Initiating an event An event is initiated by requesting a callback to be called when a certain amount of time has passed eventAdd(name, callback, callbackdata, when, weight) Events are used to trigger periodic operations Maintain some statistics Handle purging DNS/IP caches Trigger the cache rebuild Events MUST be small because squid is single-threaded