Sunday, January 20, 2019

Change Brave cache

Web browsers save their caches at predetermined locations by default, which can usually be changed quite easily from within the browsers’s Options. However, in Brave, there is no visible option to change the location of the cache. This doesn’t, however, mean that it can’t be done.
In this guide we’ll show you how to easily change the default save location of Brave’s cache.
Using Microsoft Windows 7, the default save location of Brave’s cache is:
C:\Users\username\AppData\Local\Google\Brave\User Data\Default\Cache
Here’s how to change it by adding just a few parameters to the Brave shortcut. In my case I have a ramdisk on A:/  so I’m going to use that, you can adjust it for whatever you like. Also I use OORegedit which is basically Regedit on steroids, but it will work with the regular one too.
1.       Locate a Brave shortcut (Desktop, Start Menu, Taskbar etc.), right-click it and select Properties.
https://www.simplehelp.net/images/change_chrome_cache_location/1.png
2.      In the Target field append the following to the already present string:
--disk-cache-dir="A:/" --disk-cache-size=104857600
Replace the text in red to any directory you would make the new cache directory. Click OK to exit.
https://www.simplehelp.net/images/change_chrome_cache_location/2.png
Next, Brave needs to be configured to use the newly defined cache folder for opening previously visited links in the history. For this,
1.       Type regedit in the Run command and click OK.
https://www.simplehelp.net/images/change_chrome_cache_location/3.png
2.      Navigate to the following registry key:
HKEY_CLASSES_ROOT\BraveHTML\shell\open\command
https://www.simplehelp.net/images/change_chrome_cache_location/4.png
3.      In the right hand pane, the location of the EXE of Brave would be given. Right-click the entry and click on Modify.
https://www.simplehelp.net/images/change_chrome_cache_location/5.png
4.      Append the following to the already written value of the registry key after the Brave.exe” part
--disk-cache-dir="A:/" --disk-cache-size=104857600
Note that the red directory location in this step should be identical to the one you specified in step #2 in the first section, otherwise Brave will not be able to load pages from the newly set cache.
The registry key value should now look something like this:
"C:\Users\Martin\AppData\Local\Google\Brave\Application\Brave.exe" --disk-cache-dir="A:/" --disk-cache-size=104857600 -- "%1"
Click OK and exit the Registry Editor.
https://www.simplehelp.net/images/change_chrome_cache_location/6.png
Brave will now be configured to save cache at a new location and also retrieve previously loaded web pages from the new cache location as well. Restart Brave and for the changes to take effect.



5 comments:

  1. Thank you, this worked perfectly!

    ReplyDelete
  2. Unfortunately it did not work for me. I made the first change in the Brave properties window using "E:\" as my cache location, and clicking apply, it said the folder didn't exist. Then I changed it to what you have in your image "E:/" (which isn't a correct Windows syntax) and that too failed when apply was clicked on.

    I note that in the Target field it starts out with quotes around the location, and ends those quotes at the end of the location, but then you add in your string with no quotes around it since there are interior quotes in your string, I guess, but for some reason Windows doesn't want to show the syntax correctly.

    Since I can't show you my screenshot, I'll quote what the error message shows:

    The name "C:\Program Files\BraveSoftware\Brave-Brwoser\Application\brave.ext" --disk-cache-dir="E:/' specified in the Target box is not valid. Make sure the path and file name are correct.

    Note that at the end of the drive specification, the rest of the string has been concatinated, and only a ' shows, but the string I put in the Target properties is the full string:

    --disk-cache-dir="E:\Cache" --disk-cache-size=104857600

    And I tried it as E:\Cache (folder exists), E:\, and E:/ . All fail.

    ReplyDelete
    Replies
    1. What is on drive E? Is it a ramdisk or a regular drive? For me, I have a ramdisk on drive A, so i add this to the shortcut after the link to brave : --disk-cache-dir="A:/"
      Try putting that in and replace A with whatever your SSd/Ramdisk is on.

      Delete
  3. I've since found and used this program on a couple computers and it seems to work well. Works on all major browsers, so might be worth a look. https://www.softperfect.com/products/cacherelocator/

    ReplyDelete
    Replies
    1. Thanks for the info! That does make life alot easier.

      Delete

test

Windows Software to install Video/Music Musicbee Potplayer Resonic Max tray player Office Microsoft Office  Office 2016 Office 2013 Office 2...