Relocate Cache Folder

Description of the issue:
How to change default location of cache folder. See additional info below.

How can this issue be reproduced?

Expected result:

Brave Version( check About Brave):
1.2.4.2

Additional Information:
I would like to change the cache folder location to a Ram drive. Tried using mlink with J & D switches but Brave recreates the cache folder in the default location when restarted.

I am new to Brave as of 1/1/2020 transitioning from Chrome. You can change the cache location in Chrome using mlink. I’m assuming it should work on Brave as well since it is built on Chromium.

I hope this is a resolved issue and someone can point me in the right direction or let me know the steps to successfully relocate the cache.

Regards,

Forlution

Can you paste your exact commands you’re using?

Thanks @fanboynz

mklink /D “C:\Users\Forlution\AppData\Local\BraveSoftware\Brave-Browser\User Data\Default\Cache” “X:\Cache_B”

The link gets created but as soon as you start up Brave it deletes the link and recreates a new cache folder.

I was able to create a remote cache dir

I deleted my cache dir.
Created D:\cache2 folder
Open command line (admin mode)
mklink /D "C:\Users\mp3ge\AppData\Local\BraveSoftware\Brave-Browser-Beta\User Data\Default\Cache" "D:\cache2"

When I opened Brave, and browsed a few sites. D:\cache2 was populated with cache files

Hi, this cache is more permanent o it will be temporary?
I need something more permanent, I want to use this browser for a Browser Game and I want to store in cache because I have a bad Internet conection, any tips/help?

@fanboynz

Thanks! I got it working. I was renaming the cache to cache.old instead of deleting it.

Here are my steps to others for future reference.

-Shutdown Brave and make sure no copies of brave.exe is running in the background.
(Rightclick the Brave icon in the system tray and click Exit)

-Create new Cache folder in desired location

-Copy contents of Brave Cache into the new cache folder
(Optional) Recommended…

-Delete Brave Cache folder

-Open Command Prompt with Admin privileges

-Run mklink
(Sample) mklink /D “C:\Users\UserFolderName\AppData\Local\BraveSoftware\Brave-Browser\User Data\Default\Cache” “X:\newcache”

It depends…

If you are creating the new cache on another local drive then yes, it will be permanent.

If you want to store your cache on a ram drive and not lose the contents when you shutdown then you have to use a ram disk utility that will save the contents to an image at shutdown. I use Softperfect Ram Disk but there are others that you can check out like Dataram Ramdisk.

I have to try this metod, thanks!
Because this browser is based in chromium I found that can be work with this command line in the executable direct access:
“C:\Program Files (x86)\BraveSoftware\Brave-Browser\Application\brave.exe” --disk-cache-dir=“C:\Users\User-folder\personal-folder” --disk-cache-size=2000000000
But the cache size command it seems that maybe don’t work like as it is supposed

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.