You are here

Google Chrome Portable - cache directory

8 posts / 0 new
Last post
nikant
Offline
Last seen: 6 months 4 weeks ago
Joined: 2017-11-10 03:21
Google Chrome Portable - cache directory

Hi,

a question if someone has some idea..
Trying to configure Google Chrome Portable to work only on a secondary HDD I noticed that it wrote cache data in the main SSD drive so I found the CacheInTemp=true setting in the ini file..

Changing that to "false" now Chrome writes data in C:\Documents and Settings\USER\Local Settings\Temp\
so it's still a problem..

Also tried in the ini file changing the
AdditionalParameters= --disk-cache-dir="D:\portable\PortableApps\GoogleChromePortable\Other\cache"
(for example)

but still it writes in the Local Settings Temp directory.. any ideas?

John T. Haller
John T. Haller's picture
Online
Last seen: 2 min 20 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Both

If you set CacheInTemp to false, the launcher won't add its own --disk-cache-dir into the exec string. So, setting that plus using AdditionalParameters should work in theory.

AdditionalParameters=--disk-cache-dir="D:\portable\PortableApps\GoogleChromePortable\Other\cache"

Sometimes, the impossible can become possible, if you're awesome!

nikant
Offline
Last seen: 6 months 4 weeks ago
Joined: 2017-11-10 03:21
Thank you for the answer..

Thank you for the answer.. in theory yes.. but with both and it still writes in Local Settings - Temp :/

John T. Haller
John T. Haller's picture
Online
Last seen: 2 min 20 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Working Here

I setup a fresh install and only changed the two items we are discussing and it worked, placing the cache within my GoogleChromePortable directory in a Cache directory I created and pointed it to. Do you have other options you have set? Does the directory exist?

Sometimes, the impossible can become possible, if you're awesome!

nikant
Offline
Last seen: 6 months 4 weeks ago
Joined: 2017-11-10 03:21
Yes the directory exists..

Yes the directory exists..
It writes to it.. only the following files

-------------------------------------------------------------

\---Default
    +---Cache
    |   \---Cache_Data
    |           data_0
    |           data_1
    |           data_2
    |           data_3
    |           f_000001
    |           f_000002
    |           index
    |
    \---Code Cache
        +---js
        |   |   index
        |   |
        |   \---index-dir
        |           the-real-index
        |
        \---wasm
            |   index
            |
            \---index-dir
                    the-real-index

-------------------------------------------------------------

Perhaps it has to do with that I made changes to system registry to set Chrome Portable available in the list of Default browsers in Windows 10

Anyway.. I will keep testing.. and report back
Thank you all

John T. Haller
John T. Haller's picture
Online
Last seen: 2 min 20 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Same Files?

The command line passed to chrome.exe for neither of those options vs both of them only differs in what directory --disk-cache-dir is pointed to. Is there something else that isn't working? If you set it as default, did you point it to GoogleChromePortable.exe? If pointed to chrome.exe, it won't work right.

Sometimes, the impossible can become possible, if you're awesome!

Gord Caswell
Gord Caswell's picture
Offline
Last seen: 1 week 3 days ago
DeveloperModerator
Joined: 2008-07-24 18:46
ini file in Google Chrome portable root directory?

Also, is the ini file in the Google Chrome Portable root directory, or still in Other\Source? It won't work if it isn't moved beside GoogleChromePortable.exe.

nikant
Offline
Last seen: 6 months 4 weeks ago
Joined: 2017-11-10 03:21
Thank you all for your

Thank you all for your support Smile

ini file is moved to root dir now
The registry of Windows was modified correctly (to GoogleChromePortable.exe and not chrome.exe) from the beginning

I checked with a cache-view program from Nirsoft and indeed the cache seems to be to my directory as instructed in the ini file

The only thing that is still written in C:\ drive when Chrome starts is a series of .tmp files

for example:

04:03:2022  08:43            83.617         17c0ced9-3c14-4fc4-a045-4e19b439f2f0.tmp
04:03:2022  08:46           102.519         1b35e896-ccf7-4c8c-b9bc-c07290157022.tmp
04:03:2022  08:44           594.753         21d52e23-cd03-4939-a3b0-858e5055e07a.tmp
04:03:2022  08:43         3.025.731         2a043097-06e6-4180-a2b9-14bb575487a9.tmp
04:03:2022  08:43            51.207         2e0a75f8-c4ae-4ded-8b1e-f848e2abf1ee.tmp
04:03:2022  08:43           983.660         2ef5244d-ed78-4c04-86d5-fd8f5298fdc3.tmp
04:03:2022  08:45           218.569         32ee84dd-f4d0-44b0-93d3-baaafa2ff97a.tmp
04:03:2022  08:43            96.574         3f20f970-58d0-4833-b71c-e309aff9ab7f.tmp
04:03:2022  08:42                 0         403aaa24-9152-4198-a270-a92937374f0a.tmp
04:03:2022  08:43            43.454         404b7ee6-68ef-4b45-8b04-a9777b2c3c12.tmp

I guess those will remain..

Log in or register to post comments