Cache directory reverts to default for Edge and Chrome

3 posts · Closed

hurleyp
14 Dec 2020

I'm evaluating RAM Disk 4.1.1 64-bit and Cache Relocator 1.5 on Windows 10 Pro/64 19042.685.

I've redirected the caches for Firefox, Chrome, and Edge to the RAM disk, R:/cache. Then I've noticed that occasionally the cache directory for Edge and Chrome will revert to the default. Is there a workaround for this?

Andrew SoftPerfect
15 Dec 2020

It looks like occasionally a new version of Chrome/Edge deletes the symbolic link and re-creates a regular cache directory. I am not quite sure why they are doing that though, maybe because their cache format changes from version to version.

One way to deal with this would to run the Cache Relocator periodically to check if the redirection is in place.
Otherwise, you can edit the shortcut that you use to open Chrome/Edge and add the --disk-cache-dir parameter. For example, your shortcut could look like this, where R:\Cache is a RAM disk folder:

"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --disk-cache-dir=R:\Cache

This should always use the specified location.

hurleyp
17 Dec 2020

Thanks, I'll give that a try.

Paul

This topic is closed. It has had no new posts for over a year, so the software versions it talks about may be out of date. Start a new topic in RAM Disk if you have a similar question.