Firefox cache folder customized

Hello,

Maybe is a bug or maybe is a suggestion. My firefox cache folder is customized in about:config and ccleaner don't read this value setting and select the default profile's folder.

The key name is browser.cache.disk.parent_directory

Thanks.

Maybe is a bug or maybe is a suggestion. My firefox cache folder is customized in about:config and ccleaner don't read this value setting and select the default profile's folder.

The key name is browser.cache.disk.parent_directory

CCleaner does not read any values from any program. It uses rules for the standard paths to find for example the Firefox cache.

This is the rule which CCleaner uses to delete Firefox cache:

[Mozilla - Internet Cache]
ID=2001
LangSecRef=3026
LangRef=3161
Default=True
SpecialDetect=DET_MOZILLA
SpecialKey1=N_MOZ_CACHE

There You can see that there is "SpecialKey". This means CCleaner searches for the standard paths (positions on hard drive) which are used for example by Firefox.

Another example is the Skype rule:

[skype]
ID=2205
LangSecRef=3022
DetectFile=%ProgramFiles%\Skype\Phone\Skype.exe
Default=True
FileKey1=%AppData%\Skype|temp*

So there You can see "Filekey1". There CCleaner searches for the unnecessary files left by Skype. These are the folders:

Windows XP: C:\Documents and Settings\{username}\Application Data\Skype

Windows Vista/7: C:\Users\{username}\AppData\Roaming\Skype

It deletes the files which start with temp

So if You change the standard path for example in Firefox, CCleaner will not be able to find the cached files.

Now You have three possibilities:

- You can change the browser.cache.disk.parent_directory key to his default value.

- You can create Your own entry for CCleaner to delete the Firefox cache. Therefore see here (under "How to make your own Winapp2.ini entry" click "Show". There are some good explanations to).

- Under "Options" and then "Include" add userspecific folder to CCleaner. Select "Add" and then choose the folder called cache, click "Ok" and then the same for the folder called jumpListCache. For both folders You have to select under "Options" "Include files and subfolders".

Standard path for these folders is: %LocalAppData%\Mozilla\Firefox\Profiles\ and then your profile's name.

Good luck

qsdewa

PS: If you have more questions post them here.

My preference is to use a JUNCTION as a replacement for a default folder within the Firefox profile path,

and use that junction to link to wherever I want the cache or profile to actually exist.

My preference is to use a JUNCTION as a replacement for a default folder within the Firefox profile path,

and use that junction to link to wherever I want the cache or profile to actually exist.

Junction? Please explain.

I launch CMD.EXE and use the "DOS" command MKLINK

You need the /J argument.

To see how to use it issue the command

MKLINK /?

This is a script I used before I abandoned Firefox in favor of the more dependable cousin Palemoon.

@ECHO OFF
XCOPY C:\Users\Alan\AppData\Local\Mozilla\Firefox\Profiles\9ajtpvt8.default D:\Junctions\FireFox\Local\Default /E /I
PAUSE
RD /S /Q C:\Users\Alan\AppData\Local\Mozilla\Firefox\Profiles\9ajtpvt8.default
MKLINK /J C:\Users\Alan\AppData\Local\Mozilla\Firefox\Profiles\9ajtpvt8.default D:\Junctions\FireFox\Local\Default
PAUSE
RD /S /Q C:\Users\User\AppData\Local\Mozilla\Firefox\Profiles\e8qzuv4d.default
MKLINK /J C:\Users\User\AppData\Local\Mozilla\Firefox\Profiles\e8qzuv4d.default D:\Junctions\FireFox\Local\Default
PAUSE

NB

The first two PAUSE give the opportunity to use Windows Explorer and confirm that a duplicate "9ajtpvt8.default" has been successfully copied before the original is deleted.

A more recent script for Palemoon is

@ECHO OFF
MD D:\Junctions\PaleMoon\
FOR %%X IN (Alan User) DO FOR %%Y IN (Local Roaming) DO CALL :ALL %%X %%Y
PAUSE
GOTO :EOF

:ALL
SET LINK=C:\Users%1\AppData%2\Moonchild Productions\Pale Moon
SET TARGET=D:\Junctions\PaleMoon%1%2\Pale Moon

ECHO %LINK%
ECHO %TARGET%
XCOPY “%LINK%” “%TARGET%” /E /I /Q

RENAME “%LINK%” Pale#Moon
ECHO(
MKLINK /J “%LINK%” “%TARGET%”
ECHO(

NB

After running that script the original folders have been renamed as PALE#MOON,

and after the script has been successful these PALE#MOON folders can be manually deleted,

but if something went wrong with the script it is a simple job to remove the junctions and rename PALE#MOON back to "PALE MOON".

Another approach I have used is Junction Link Magic

http://www.rekenwond...m/linkmagic.htm

This has the benefits that it has a Windows GUI and is far more user friendly than trying to understand "MKLINK /?".

I launch CMD.EXE and use the "DOS" command MKLINK

You need the /J argument.

To see how to use it issue the command

MKLINK /?

This is a script I used before I abandoned Firefox in favor of the more dependable cousin Palemoon.

@ECHO OFF
XCOPY C:\Users\Alan\AppData\Local\Mozilla\Firefox\Profiles\9ajtpvt8.default D:\Junctions\FireFox\Local\Default /E /I
PAUSE
RD /S /Q C:\Users\Alan\AppData\Local\Mozilla\Firefox\Profiles\9ajtpvt8.default
MKLINK /J C:\Users\Alan\AppData\Local\Mozilla\Firefox\Profiles\9ajtpvt8.default D:\Junctions\FireFox\Local\Default
PAUSE
RD /S /Q C:\Users\User\AppData\Local\Mozilla\Firefox\Profiles\e8qzuv4d.default
MKLINK /J C:\Users\User\AppData\Local\Mozilla\Firefox\Profiles\e8qzuv4d.default D:\Junctions\FireFox\Local\Default
PAUSE

NB

The first two PAUSE give the opportunity to use Windows Explorer and confirm that a duplicate "9ajtpvt8.default" has been successfully copied before the original is deleted.

A more recent script for Palemoon is

@ECHO OFF
MD D:\Junctions\PaleMoon\
FOR %%X IN (Alan User) DO FOR %%Y IN (Local Roaming) DO CALL :ALL %%X %%Y
PAUSE
GOTO :EOF

:ALL
SET LINK=C:\Users%1\AppData%2\Moonchild Productions\Pale Moon
SET TARGET=D:\Junctions\PaleMoon%1%2\Pale Moon

ECHO %LINK%
ECHO %TARGET%
XCOPY “%LINK%” “%TARGET%” /E /I /Q

RENAME “%LINK%” Pale#Moon
ECHO(
MKLINK /J “%LINK%” “%TARGET%”
ECHO(

NB

After running that script the original folders have been renamed as PALE#MOON,

and after the script has been successful these PALE#MOON folders can be manually deleted,

but if something went wrong with the script it is a simple job to remove the junctions and rename PALE#MOON back to "PALE MOON".

Another approach I have used is Junction Link Magic

http://www.rekenwond...m/linkmagic.htm

This has the benefits that it has a Windows GUI and is far more user friendly than trying to understand "MKLINK /?".

Very interesting. Thank You very much.