gecko-dev/xpfe/components/prefwindow/resources/content/pref-cache.js
rayw%netscape.com 0257791053 Bug 37275, Changing value of all progids, and changing everywhere a progid
is mentioned to mention a contractid, including in identifiers.

r=warren
2000-09-13 23:57:52 +00:00

25 lines
896 B
JavaScript

function prefCacheSelectFolder()
{
bundle = srGetStrBundle("chrome://communicator/locale/pref/prefutilities.properties");
var folderField = document.getElementById("browserCacheDirectory");
var file = getFileOrFolderSpec( bundle.GetStringFromName("cachefolder"), true );
if ( file && file != -1 )
folderField.value = file.unicodePath;
}
function prefClearMemCache()
{
dump("prefClearMemCache \n");
var cache = Components.classes['@mozilla.org/network/cache;1?name=manager'].getService();
var cacheService = cache.QueryInterface( Components.interfaces.nsINetDataCacheManager);
cacheService.clear( 2 );
}
function prefClearDiskCache()
{
dump("prefClearDiskCache \n");
var cache = Components.classes['@mozilla.org/network/cache;1?name=manager'].getService();
var cacheService = cache.QueryInterface( Components.interfaces.nsINetDataCacheManager);
cacheService.clear( 12 );
}