The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    Set Firefox to cache to RAM instead of HDD

    Discussion in 'Windows OS and Software' started by winkosmosis, Jan 21, 2010.

  1. winkosmosis

    winkosmosis Notebook Evangelist

    Reputations:
    43
    Messages:
    510
    Likes Received:
    3
    Trophy Points:
    31
    I wanted to reduce disk access, and I thought I'd have to use a RAMdisk for the browser cache, but with some googling I discovered that you can set Firefox to use RAM only for caching.
    Sources: http://forums.mozillazine.org/viewtopic.php?f=8&t=1088725 http://kb.mozillazine.org/Browser.cache.memory.capacity

    Here are the steps:

    Type about:config into URL box in Firefox.

    Search for browser.cache.disk.enable and set value to False.

    Search for browser.cache.memory.enable and set value to True.

    Search for browser.cache.memory.capacity

    It probably doesn't exist

    Right click in browser window and select New -> String.

    Call it browser.cache.memory.capacity

    Set value to desired cache size in kilobytes. For example, 128MB * 1024 = 13107
     
  2. Lithus

    Lithus NBR Janitor

    Reputations:
    5,504
    Messages:
    9,788
    Likes Received:
    0
    Trophy Points:
    205
    That's good if you never turn your computer off, but defeats the purpose of the cache if you do.
     
  3. winkosmosis

    winkosmosis Notebook Evangelist

    Reputations:
    43
    Messages:
    510
    Likes Received:
    3
    Trophy Points:
    31
    Good point. Although the cache in RAM is useful because you're usually loading stuff multiple times in the same session.
     
  4. davepermen

    davepermen Notebook Nobel Laureate

    Reputations:
    2,972
    Messages:
    7,788
    Likes Received:
    0
    Trophy Points:
    205
    firefox uses the ram cache anyways, but the disc cache for inbetween sessions, too. browsing gets much slower by disabling the disk cache.

    could be useful for steadystate setups. but i guess, most don't know what that is :)
     
  5. UniqueQ

    UniqueQ Notebook Geek

    Reputations:
    32
    Messages:
    96
    Likes Received:
    0
    Trophy Points:
    15
    Excellent. This is quite good. Everything loads into RAM. Super fast for offline viewing.

    Thanks for the tip :)
     
  6. newsposter

    newsposter Notebook Virtuoso

    Reputations:
    801
    Messages:
    3,881
    Likes Received:
    0
    Trophy Points:
    105
    try setting your cache to a ramdisk built on a usb flash drive.

    much will depend on the read/write performance of the flash drive (cheap/slow ones will NOT do well) but it might be a good middle ground.
     
  7. swarmer

    swarmer beep beep

    Reputations:
    2,071
    Messages:
    5,234
    Likes Received:
    0
    Trophy Points:
    205
    I guess it must, because it uses a freakin' boatload of RAM.

    ...including me.
     
  8. DetlevCM

    DetlevCM Notebook Nobel Laureate

    Reputations:
    4,843
    Messages:
    8,389
    Likes Received:
    1
    Trophy Points:
    205
    Its a set up that always falls back to a predefined point if you are a normal user.