Brave cache - on a RAM Drive?

I have 64GB of RAM on Windows 11 25H2.
This is only required for when I run the occasional very intensive specialty program.
So I thought I could have the Brave-Beta CACHE on a 8GB RAM Drive. (X:)
I create this using the free ImDISK program.
I want to redirect (Junction link?) the relevant folders to my X:\Bravecache folder.
I don’t want to lose logins/passwords on shutdown.
After hours of testing with Gemini AI, Brave is still caching on my C: drive.
Any hints?
Not essential to solve, I just thought it would be easier.

@rgnixon

Given, you want to use some external SSD non-C:\ drive, in order to spare the typical, internal SSD C:\ drive. Take a look at:

‘https://old.reddit.com/r/brave_browser/comments/1eudvul/how_to_move_cache_or_any_folder_from_brave_to_a/’

Read all of that. IF that works, great. IF NOT:


In general among info online, I found that a Symbolic Link for the ‘Cache’ folder:

"C:\Users\[UserName]\AppData\Local\BraveSoftware\Brave-Browser\User Data\Profile n\Cache"

is not durable, with the Reddit post above, being an exception.

So, another approach:


Let us say that you already have 2 existing Brave Browser user profiles named, Profile 1 (or Personal) and Profile 2 (or Work) as follows:

Profile 1 (or Personal) was created during Brave Browser installation, and Profile 2 (or Work) was created by you as your 1st additional user profile.

Brave Browser user profile named Profile 1 (or Personal) ← its data is in folder named Default is at:

"C:\Users\[UserName]\AppData\Local\BraveSoftware\Brave-Browser\User Data\Default"

Brave Browser user profile named Profile 2 (or Work) ← its data is in folder named Profile 1 is at:

"C:\Users\[UserName]\AppData\Local\BraveSoftware\Brave-Browser\User Data\Profile 1"

You want to create a 2nd additional Brave Browser user profile named Profile 3 ← its data will be in folder named Profile 2 located on the external SSD/USB drive:

"X:\ALT_USER_DATA\Profile 2"


Command line flag/switches that will apply

--profile-directory="FOLDER_NAME" is used to select a specific Brave Browser user profile folder inside a Brave User Data directory - typically:

  • --profile-directory="Default"
  • --profile-directory="Profile 1"
  • --profile-directory="Profile 2"

--user-data-dir="PATH" is used to specify the PATH to the User Data directory location, wherein the Brave Browser user profile folders are located.

WHEN a User Data directory does not already exist, then the --user-data-dir="PATH" flag/switch will cause Brave to create the User Data directory and initialize a fresh structure therein.


Given that you have an external SSD or USB drive attached, and it is identified as "X:" at location "X:\"

Exit / Quit everything and restart the computer. Next, with Brave Browser NOT running …

IF no User Data structure exists at "X:" THEN, in the Windows OS Command Prompt window, enter the following:

"C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe" --user-data-dir="X:\ALT_USER_DATA" --profile-directory="Profile 2"

That command assumes that you have a 64 architecture, system level installation, such that the brave.exe executable is at:

"C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe"

Brave Browser will start, and create, and initialize directory ALT_USER_DATA at:

"X:\ALT_USER_DATA"

Brave Browser will also create a new Brave Browser user profile named: Personal, AND for that user profile, also create the associated data folder named Profile 2 at:

"X:\ALT_USER_DATA\Profile 2"

IF you already have a pinned Brave Lion icon for the original installation of Brave Browser, in the Windows OS Taskbar, then a second icon will also appear for the currently running Brave Browser process (some call that an “instance”).

Now is a good time to create a new Desktop shortcut for starting Brave and using the external profile. During creation of the shortcut, use the following for the Target:

"C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe" --user-data-dir="X:\ALT_USER_DATA" --profile-directory="Profile 2"

I have run through all the steps and named the shortcut BraveX


NOTES

IF you start up Brave Browser that uses User Data at:

"C:\Users\[UserName]\AppData\Local\BraveSoftware\Brave-Browser\User Data"

THEN the brave://profile-picker will NOT show the Brave user profile(s) at:

"X:\ALT_USER_DATA"

IF you start up Brave Browser that uses User Data at:

"X:\ALT_USER_DATA"

THEN the brave://profile-picker will NOT show the Brave user profiles at:

"C:\Users\[UserName]\AppData\Local\BraveSoftware\Brave-Browser\User Data"


So, “Brave cache on a RAM Drive” >

  • "X:\ALT_USER_DATA\Profile 2\Cache"
  • "X:\ALT_USER_DATA\Profile 2\Code Cache"
  • "X:\ALT_USER_DATA\Profile 2\DawnGraphiteCache"
  • "X:\ALT_USER_DATA\Profile 2\DawnWebGPUCache"
  • "X:\ALT_USER_DATA\Profile 2\GPUCache"
notes to self

KEYWORDS

  • –profile-directory
  • –user-data-dir

Why “Keywords” : The Discourse software used by the Brave Community, has a community search feature ← but that does not include an ability to search for character strings within the “bookends” created by backtick characters.