Some advanced options

For discussions specific to the Portable version of the browser.

Moderator: satrow

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 21397
Joined: Sun, 28 Aug 2011, 17:27
Location: 58.5°N 15.5°E
Contact:

Some advanced options

Unread postby Moonchild » Fri, 07 Feb 2014, 21:20

Some advanced options for using the Portable browser.
Note that these kind of changes are at your own risk and I will not provide support for edited versions in most cases.

Advanced options

Note that any edits to palemoon-portable.ini will be overwritten if you install a new version of the portable on top of it. To prevent losing your edits, save the .ini file as user.ini in the Pale Moon portable folder. This file will take precedence over palemoon-portable.ini. (meaning: if user.ini is found, palemoon-portable.ini will be ignored. it has to be a full copy of the palemoon-portable.ini file with your edits).
If you do this, also check to see if anything specific has changed in the new palemoon-portable.ini since the portable framework, script and .ini may see some changes from time to time to improve functionality.

If you run Pale Moon Portable from your hard disk (to keep it self-contained)
You may want to enable the disk cache and xul cache for better performance. Be aware that the Portable version will not provide file associations unless you specifically make them, yourself.

To enable caching, find the appropriate section in Palemoon-Portable.ini, under "Global Preferences":

;(enable cache)
browser.cache.disk.enable=false --> Change this to "true"


By default, these settings will store the disk cache as a subdirectory of your profile called Cache.
If you prefer to have the cache in a different directory instead, change the following:

;(cache directory)
browser.cache.disk.parent_directory=%MOZ_PROFILE_PATH%|\\"


to a directory of your choice, for example:

browser.cache.disk.parent_directory=c:\palemoon-cache|\\"

If you want to use Pale Moon portable to test
For example to test a different version of Pale Moon while you already have one installed (e.g. new version check, check for compatibilities of add-ons with a major release, etc.) and want to run multiple different versions at the same time, find the following lines in palemoon-portable.ini:

[Environment]
;(multiple istances)
;MOZ_NO_REMOTE=1


and remove the semicolon in front of MOZ_NO_REMOTE
Improving Mozilla code: You know you're on the right track with code changes when you spend the majority of your time deleting code.

"If you want to build a better world for yourself, you have to be willing to build one for everybody." -- Coyote Osborne

User avatar
TELVM
Moon lover
Moon lover
Posts: 98
Joined: Thu, 13 Feb 2014, 13:07
Location: Bouvetøya

Re: Some advanced options

Unread postby TELVM » Sat, 15 Feb 2014, 15:05

A question on caching if you don't mind.

What would be the difference, if any, between storing the cache in a ramdisk:

browser.cache.disk.enable = true
browser.cache.disk.parent_directory = R:\PaleMoon\Cache
<--- (where R: is a ramdisk)


... and browsing without any disk cache at all, only memory cache, something like this:

browser.cache.disk.enable = false

browser.cache.memory.enable = true
browser.cache.memory.capacity = 1048576
browser.cache.memory.max_entry_size = 51200


As long as RAM is not powered off, can memory caching replace disk caching, or will I miss something by not using disk cache?

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 21397
Joined: Sun, 28 Aug 2011, 17:27
Location: 58.5°N 15.5°E
Contact:

Re: Some advanced options

Unread postby Moonchild » Sat, 15 Feb 2014, 15:09

Memory cache and disk cache have two completely different functions and memory cache cannot and will not replace disk cache because of the different purpose they serve. Setting memory cache capacity to a very high number will not help, as it won't be used.
See also: http://kb.mozillazine.org/Browser.cache.memory.capacity
Improving Mozilla code: You know you're on the right track with code changes when you spend the majority of your time deleting code.

"If you want to build a better world for yourself, you have to be willing to build one for everybody." -- Coyote Osborne

User avatar
TELVM
Moon lover
Moon lover
Posts: 98
Joined: Thu, 13 Feb 2014, 13:07
Location: Bouvetøya

Re: Some advanced options

Unread postby TELVM » Sat, 15 Feb 2014, 20:29

Ouch, so the memory cache only deals with "decoded images, messages, and chrome".

I've been monitoring about:cache and you're right, the memory cache storage in use never seems to grow above ~125,000 KiB no matter what I try.


Return to “Pale Moon Portable”

Who is online

Users browsing this forum: No registered users and 2 guests