caching - How to clear the Firefox cache from Windows 7 command line -



caching - How to clear the Firefox cache from Windows 7 command line -

i include firefox profile directory in automated backups don't want cached pages/images. i've searched high , low i've found either outdated (delete contents of [ffprofile]\cache folder) or instructions delete entire contents of profile directory! there must way modern ff builds...

i don't think there command line alternative clear file caches straight (patches accepted, though, suppose. ;> ). workaround, though, can clear caches through method via command line:

# create test profile (do once) profilename=testprofile profiledir=/tmp/profiledir $ firefox -no-remote -createprofile $profilename $profiledir # clear cache of profile (do every time want run script) # uses mac osx path caches # see http://forums.mozillazine.org/viewtopic.php?f=38&t=502357 more info caches located on different operating systems rm ~/library/caches/firefox/profiles/*.${profilename}/entries/cache2/*

note tested on mac osx, , works fine, although it's of hack around lack of profile identifier.

firefox caching command

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -