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.
4 Answers
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:
- Shut down Chrome
- Confirm no copies of chrome.exe are running in the background (Chrome does that by default)
- 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) - 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.
-
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?– MichaelCommented 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. Commented 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.– MichaelCommented Jan 21, 2015 at 12:14
-
Glad to hear. Don't forget to mark the question answered if this works for you. Commented 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
. Commented Oct 29, 2015 at 9:12
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.
-
1
-
Seems easy and it works but I had to use regedit to create the Google and Chrome registry keys so the command would work. Commented Jan 6, 2023 at 16:34
-
Cool! I have tried this a year ago - nothing happened. But now it works!– CherryCommented May 4, 2023 at 15:42
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.
I created a GUI-based Windows Application, with which you can change chrome browser's cache folder.
-
1Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.– Community BotCommented Dec 4 at 4:01