fltcpt wrote:
Seems like this is an asked question but I could find
no answer. I want to write an external program
(so no java script...) that can selectively delete certain items from netscape/mozilla's disk cache, how should I go about doing that?
I browsed through mozilla's source of about:cache, so should I be making API calls to necko.dll to mimic that (is that possible?) or is there any otherway?
Any pointer appreciated.
_______________________________________________
Mozilla-netlib mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-netlib
To "edit" the cache outside the Mozilla process itself, you need to first make sure that Mozilla is not running. If it is not running, then you can write a small program that uses the nsICacheService to enumerate the cache and "doom" various entries.
See the sample code in netwerk/test/
They are all small programs that just run link against xpcom.dll and access necko interfaces. If you have questions, please let me know.
-Darin _______________________________________________ Mozilla-netlib mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-netlib