可以通过 --User-data-dir=R:\TEMP 改变用户文件位置(包括缓存)
但这样历史主题收藏都一同改变了
只改变缓存的位置如下:
快捷方式参数:"D:\Program Files\sunchrome\chrome .exe" --disk-cache-dir=R:\TEMP
这种方法只有在点击这个修改过参数的图标时候有效,更彻底的一种改法是,
定位到下面的
注册表键:
HKEY_CLASSES_ROOT\ChromeHTML\shell\open\command
在这里你可以看到一个指向 Chrome 运行路径的名为(Default)的键值,双击它
"C:\Users\[username]\AppData\Local\Google\Chrome\Application\chrome.exe" --disk-cache-dir="d:\cache" --disk-cache-size=104857600 -- "%1"
// 解释:设置缓存路径到d:\cache 最大缓存大小100M。
英文好的话也可以看看这个
--disk-cache-dir
// Use a specific disk cache location, rather than one derived from the UserDatadir.
--disk-cache-size
// Forces the maximum disk space to be used by the disk cache, in bytes.
--media-cache-size
// Forces the maximum disk space to be used by the media cache, in bytes.