10

I was wondering if moving the cache folder in chrome(Win7x64) to a ramdisk drive will improve the performance of cached flash player files/games? If so, What would be the easiest way to do this? I'm assuming that I will have to move the folder, and then change the directory in chrome to point to the new folder location. I already created the Ram drive, and moved the Chrome Temp files to it successfully, but the flash files are not located in the chrome temp directory. Any thoughts would be helpful, thanks.

3 Answers 3

11

Testing is probably the best way to see if there is an improvement. To do that, run Chrome with the --disk-cache-dir option specified at the command line with a subdirectory of your choosing that is on the ramdisk. Something like:

"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --disk-cache-dir=r:\chrome_cache (assuming r: is your ramdisk)

Then try one or more of your games. If that does improve speed (I'm not sure it will), you can try using that profile just for your games, or you can redirect the cache folder of your current profile to the ramdisk. To do the redirect:

  1. Shut down Chrome
  2. Confirm no copies of chrome.exe are running in the background (Chrome does that by default)
  3. Move your cache folder (usually %appdata%\..\Local\Google\Chrome\User Data\Default\Cache) to somewhere on your ramdisk (or just delete it, since caches should be recreated)
  4. from an administrator command prompt, run mklink /D old_cache_folder_location new_cache_folder_location (for instance, mklink /D %localappdata%\Google\Chrome\User Data\Default\Cache r:\chrome_cache)

Chrome should follow the symbolic link to the new folder. Note you can use --user-data-dir instead if you want to move more than just your cache.

5
  • Thanks for your response, Changing the user-data-dir to my ramdisk has made a marked improvement in performance in general web browsing so far, I will be testing the Flash Games later to see how that goes, but I didn't think that the Flash Player Storage folders were stored in the Chrome cache?
    – Michael
    Jan 19, 2015 at 1:08
  • Flash Player local storage appears to be under %AppData%\Macromedia\Flash Player. However, Google bundles its own version of flash player with Chrome, so I'm not sure which directory it uses. You can always search for the most recently added/modified file under %AppData%\Macromedia\Flash Player and see if anything recent is in there.
    – NextInLine
    Jan 19, 2015 at 1:45
  • Thanks, I'm seeing better performance in both Web Browsing, and Game Play, since i moved the Chrome Cache. Looking in the appdata\-\flashplayer folder, it is empty, so Chrome is storing, and using the flash player files in the Chrome cache folder on the Ram Drive.
    – Michael
    Jan 21, 2015 at 12:14
  • Glad to hear. Don't forget to mark the question answered if this works for you.
    – NextInLine
    Jan 21, 2015 at 17:37
  • 5
    --user-data-dir moves the entire profile, not just the cache. The switch that answers the question, i.e. moving just the cache, is --disk-cache-dir. Oct 29, 2015 at 9:12
5

Run PowerShell as Administrator, then:

Set-ItemProperty -Path Registry::HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome -Name 'DiskCacheDir' -Value 'C:\Temp\Chrome'

This will move Chrome cache folder to C:\Temp\Chrome system-wide, for every user and regardless where Chrome is started from (shortcut or command line).

Using Chrome 80.0.3987.122 on Windows 10 Version 1909.

3
  • 1
    This setting is applied as administrator policies, so user might find out chrome will inform them that "this chrome is manage by your organization". Check this for more information
    – HikariTW
    Jun 16, 2020 at 2:04
  • Seems easy and it works but I had to use regedit to create the Google and Chrome registry keys so the command would work. Jan 6, 2023 at 16:34
  • Cool! I have tried this a year ago - nothing happened. But now it works!
    – Cherry
    May 4, 2023 at 15:42
0

What worked for me to move the profile data to my secondary SSD and cache to my RAM drive was the following update to the target:

"C:\Program Files\Google\Chrome\Application\chrome.exe" --user-data-dir="D:\Chrome" --disk-cache-dir="R:\Chrome"

Now Chrome doesn't hit my root SSD as much, thus speeding up the process and prolonging the life of my main SSD with the Win/OS on it.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .