On 03/06/11 02:20, Luis Daniel Lucio Quiroz wrote:
just thinking
if squid-purge tool can purge an specific object from cache by modifing the db
cache db,
is there a way to push an object like that with a tool?
AFAIK not with purge. The -h output pretty much covers what the tool can
do. Mostly read type actions based on URL or regex of URL AFAIK.
There are three major problems to adding directly to the cache:
The first is that the object contains meta data only receivable from
the origin server.
The second is HTTP variants. They also contain meta data only
receivable from the client agent or browser.
The third is atht all this meta data is mirrored in the in-RAM cache
index. Altering the disk wont make the object available.
The best way is with the squidclient tool. It makes URL requests to
Squid with any client headers you care to tell it about. Squid then does
the server fetch and assembles everything for use.
Amos
--
Please be using
Current Stable Squid 2.7.STABLE9 or 3.1.12
Beta testers wanted for 3.2.0.8 and 3.1.12.2