1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How? - Force firefox to store all caches in RAM and not write to disk

Discussion in 'BlackHat Lounge' started by madoctopus, Jun 15, 2013.

  1. madoctopus

    madoctopus Supreme Member

    Joined:
    Apr 4, 2010
    Messages:
    1,252
    Likes Received:
    3,518
    Occupation:
    Full time IM
    I need a way to force Firefx to store all caches in RAM and not write to disk. Any idea how I can do that properly? I googled and found a few ways but some say they're good others say is not good... Anybody knows a surefire way to do this?
     
  2. cerebrium

    cerebrium Newbie

    Joined:
    May 1, 2013
    Messages:
    0
    Likes Received:
    0
    not sure if it's what you need but if you open a private window (directly below new tab on the firefox button) it keeps no record of anything you do during that session.
     
  3. PizzaPill

    PizzaPill Newbie

    Joined:
    Aug 20, 2012
    Messages:
    39
    Likes Received:
    21
    Location:
    Berlin
    Surefire way:

    1. Create a Ramdisk
    2. Move your firefox profile and/or cache-folder to ramdiks

    Specifics are OS dependent.
     
    • Thanks Thanks x 1
  4. niroshana35

    niroshana35 Power Member

    Joined:
    Sep 10, 2010
    Messages:
    690
    Likes Received:
    89
    Moving Your Cache to RAM

    In Firefox, all you need to do to move your caches to RAM

    Type this in firefox address bar:

    about:config

    Find browser.cache.disk.enable

    browser.cache.disk.enable

    set it to false by double clicking on it

    Then find: browser.cache.memory.enable

    browser.cache.memory.enable

    Set it to true, then find:

    browser.cache.memory.capacity

    type in the number of kilobytes you want to assign to the cache for example:

    102400

    That's it.





     
    • Thanks Thanks x 2
  5. The Scarlet Pimp

    The Scarlet Pimp Senior Member

    Joined:
    Apr 2, 2008
    Messages:
    876
    Likes Received:
    3,309
    Occupation:
    Chair moistener.
    Location:
    Cyberspace
    this tag is non-existent:
    "browser.cache.memory.capacity"

    but there is a tag labeled:
    "browser.cache.memory.max_entry_size"
     
  6. carlikito

    carlikito Regular Member

    Joined:
    Dec 28, 2009
    Messages:
    350
    Likes Received:
    214
    If you don't mind me asking, what's the general purpose of doing that?
     
  7. leeshoes

    leeshoes Junior Member

    Joined:
    Sep 20, 2012
    Messages:
    116
    Likes Received:
    27
    can't really help you but was wondering also
     
  8. spider7

    spider7 Regular Member

    Joined:
    Feb 6, 2013
    Messages:
    333
    Likes Received:
    46
    yes,...tell us, what's the secret?

    ..what does that accomplish....as it sounds like a pain-n-the-arse to get done.

    Storing cache in RAM instead of short term....does this have something to do with hiding your IP or info?
     
    Last edited: Jun 19, 2013
  9. The Scarlet Pimp

    The Scarlet Pimp Senior Member

    Joined:
    Apr 2, 2008
    Messages:
    876
    Likes Received:
    3,309
    Occupation:
    Chair moistener.
    Location:
    Cyberspace
    faster access. as the data is pulled from ram instead of the hdd.
     
  10. G-S-T

    G-S-T Executive VIP Jr. VIP

    Joined:
    Jan 20, 2011
    Messages:
    1,873
    Likes Received:
    8,874
    Occupation:
    Full time IM
    Location:
    Heavy in the game
    Great way to cover your tracks if your downloading stuff you shouldnt be...
     
    • Thanks Thanks x 1
  11. xrfanatic

    xrfanatic Jr. VIP Jr. VIP

    Joined:
    Aug 28, 2010
    Messages:
    418
    Likes Received:
    176
    Location:
    http://bit.ly/slb64
    Home Page:
    If it's about the speed, the SDD would probably solve the problem, at least a bit. If it's about getting data used for a while and lost, I would use RAM disk. Taking into account the SDD is going to cost you some bucks and ramdrive's cost is zero , the choice belongs to you.
     
  12. madoctopus

    madoctopus Supreme Member

    Joined:
    Apr 4, 2010
    Messages:
    1,252
    Likes Received:
    3,518
    Occupation:
    Full time IM
    I'm using a SSD. SSDs "age" when written to and firefox writes a lot on it and frequently. So I want to put all apps that make many small writes in RAM 100% so I don't write to the SSD anymore.

    The solution with about:config - tried it but FF still writes to disk. I think that solution only has effect on images.

    Thank you all for the replies. After a bit more googling best solution I found is a persistent ramdisk - ramdisk mounted on startup and synced with SSD using rsync on shutdown.

    G-S-T - not really. Depends what "stuff you shouldnt be" is though. If you're talking about hiding your porn browsing history from the wife then yeah I guess it does the job, but for more serious stuff it doesn't. After all the ISP still has records of all your browsing history, emails and text chats. Plus I use full disk encryption so there's no way to steal what I have on the HDD :)
     
    • Thanks Thanks x 1