Re: cache hits/misses

DINH Viet Hoa <[email protected]>
Newsgroups gmane.mail.libetpan.user
Message-ID <etPan.4254667a.88e9929.d8f@utopia>
Luke Ehresman wrote :

> Is there any way for me to track how many of my requests are actually
> cached responses and which are going out to the mail server?  I'm
> writing a pre-caching algorithm and want to get some stats on its cache
> hit/miss ratio.

you can set a variable :

mailstream_debug = 1;

that will dump all the network traffic in the current directory of the 
running process in a file named libetpan-stream-debug.log or something 
that looks like.

basically, headers request and fetch of parts requests are cached.
message-list is not cached, neither the MIME structure of the message. 
That could be a work to be done but there are so many things to do.

-- 
DINH V. Hoa,

"oh là, doucement bijou" -- nico
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQBCVGcU7w+pfAWHa3MRAuegAJ9NbviHM03poNvIY2ZYoseBUS8ZtACffoXy
635SEVO0xFmY7lpde83I/ZQ=
=xy45
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.