{"id":4416,"date":"2014-12-21T13:50:38","date_gmt":"2014-12-21T13:50:38","guid":{"rendered":"http:\/\/ubuntuhandbook.org\/?p=4416"},"modified":"2014-12-21T13:50:38","modified_gmt":"2014-12-21T13:50:38","slug":"speed-up-firefox-ubuntu-14-04-cache-to-ram","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2014\/12\/speed-up-firefox-ubuntu-14-04-cache-to-ram\/","title":{"rendered":"Speed Up Firefox in Ubuntu 14.04 By Moving Cache to RAM"},"content":{"rendered":"<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2013\/08\/firefoxlogo.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2013\/08\/firefoxlogo.jpg\" alt=\"speed up firefox\" width=\"230\" height=\"230\" class=\"aligncenter size-full wp-image-1250\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2013\/08\/firefoxlogo.jpg 230w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2013\/08\/firefoxlogo-150x150.jpg 150w\" sizes=\"auto, (max-width: 230px) 100vw, 230px\" \/><\/a><\/p>\n<p>There are a variety of ways to improve your Firefox browser&#8217;s page load times. If you have a lot of RAM to spare in Ubuntu, moving Cache to RAM can speed up Firefox since computer can access data in RAM much faster than on a hard drive.<\/p>\n<p>Firefox has a built-in feature that uses the browser cache in memory instead of disk. Below I&#8217;ll you how to enable it:<\/p>\n<p><b>1.<\/b> In address bar of Firefox, type in <b>about:config<\/b> and hit Enter. Click the button says &#8220;I&#8217;ll be careful, I promise!&#8221; to pass the warning page.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2014\/12\/firefox-advanced-settings.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2014\/12\/firefox-advanced-settings.jpg\" alt=\"Firefox Advanced Settings\" width=\"600\" height=\"321\" class=\"aligncenter size-full wp-image-4417\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2014\/12\/firefox-advanced-settings.jpg 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2014\/12\/firefox-advanced-settings-300x160.jpg 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p><b>2. Stop Firefox from caching to disk.<\/b> <\/p>\n<p>In the filter bar, type in <b>browser.cache.disk.enable<\/b>. Double-click on the result line to set value to false.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2014\/12\/disable-disk-cache.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2014\/12\/disable-disk-cache.jpg\" alt=\"Disable Cache to Hard Drive\" width=\"600\" height=\"259\" class=\"aligncenter size-full wp-image-4418\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2014\/12\/disable-disk-cache.jpg 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2014\/12\/disable-disk-cache-300x129.jpg 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p><b>3. Enable cache to RAM and assign cache size.<\/b><\/p>\n<p>To enable cache to RAM, type &#8220;browser.cache.memory.enable&#8221; in the filter bar and make sure the value of result preference is true!<\/p>\n<p>To assign cache size, create a new preference:<\/p>\n<ul>\n<li>right click on blank area -> select &#8220;New&#8221; -> Integer<\/li>\n<li>type in name &#8220;browser.cache.memory.capacity&#8221; (without quotes)<\/li>\n<li>type in a value, number in KB (for example, 100000 means 100,000KB or 100MB). You can set the value to -1 to tell Firefox to dynamically determine the cache size.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2014\/12\/enable-memory-cache.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2014\/12\/enable-memory-cache.jpg\" alt=\"Enable Memory cache\" width=\"600\" height=\"282\" class=\"aligncenter size-full wp-image-4419\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2014\/12\/enable-memory-cache.jpg 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2014\/12\/enable-memory-cache-300x141.jpg 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>When everything&#8217;s done, restart Firefox and check out the cache information by going to the <b>about:cache<\/b> page.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2014\/12\/firefox-cache-service.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2014\/12\/firefox-cache-service.jpg\" alt=\"Firefox Cache Information\" width=\"600\" height=\"292\" class=\"aligncenter size-full wp-image-4420\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2014\/12\/firefox-cache-service.jpg 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2014\/12\/firefox-cache-service-300x146.jpg 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>That&#8217;s it. Enjoy!<\/p>","protected":false},"excerpt":{"rendered":"<p>There are a variety of ways to improve your Firefox browser&#8217;s page load times. If you have a lot of RAM to spare in Ubuntu, moving Cache to RAM can speed up Firefox since computer can access data in RAM much faster than on a hard drive. Firefox has a built-in feature that uses the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[199,1194,1195],"class_list":["post-4416","post","type-post","status-publish","format-standard","hentry","category-howtos","tag-cache","tag-firefox","tag-ram"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/4416","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=4416"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/4416\/revisions"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=4416"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=4416"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=4416"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}