Categories: Give Feedback :

Needed Feature: Cache Size/Location

Showing 1-77 of 77 messages
Needed Feature: Cache Size/Location Xenofon 6/28/09 12:42 PM
Hello Google Chrome Developers

There is a feature missing in Chrome that I have been waiting for since the day it launched. Now Chrome is at Version 2 and this feature is still missing.

I need to be able to specify the cache size and location. Chrome provides no easy way to do that. Yes, I know I can go through a command line shortcut specifying a different directory and user, and run Chrome that way. But many of us don't want to use a miserable hack like that.

This is very, very important to a lot of people. We have the browser running all the time that the computer is on, and browser caches contain the worst kinds of files possible in terms of fragmentation. The default location on drive C: is as bad as a location can get, that's the drive where most people install their OS. We do NOT want fragmentation there.

Please consider providing us with a simple means (through the Chrome menu) to specify a location and maximum size for the Chrome cache.

Thank you.
Re: Needed Feature: Cache Size/Location andycool22 8/26/09 7:07 AM
bump
Re: Needed Feature: Cache Size/Location AtekA 10/14/09 5:10 AM
I agree totally.
Re: Needed Feature: Cache Size/Location fuljencio 10/28/09 10:50 AM
Limit cache size. I also need it. Please provide this option. Thank you!
Re: Needed Feature: Cache Size/Location danielillu 10/28/09 10:59 AM
It is not acceptable to me having a folder for chrome that takes up to 573MB and growing, just to store the past!
There I can find 230MB of cache, two previous chrome versions nd installers, 83MB of thumbnails (WTF?!), and a file per month of a huge amount of megabytes each storing the history index for that month.
Re: Needed Feature: Cache Size/Location agenkin 11/16/09 1:27 PM
The ability to configure the disk cache size and location is very important, and should be included with Google Chrome.

My home directory is on a slow network share, and I am using a caching HTTP proxy, so I would like to disable the disk caching altogether.  The --user-data-dir option really does something else: I don't want my "user dir" to be something other than my home directory - I just want to turn off disk cache.
Re: Needed Feature: Cache Size/Location Xenofon 11/16/09 2:08 PM
I am answering my own question here, since we have had no response from the developers. Chrome is at version 3 now, and there is still no way to modify the cache settings.This seems to be true for other Google products as well, since I have found no way to change cache location in Google Earth either.

Since I posted my original question, I have been using symbolic links to get around the problem. I created a directory for the Chrome cache on a scratch drive, which I use only for dumping cache files from IE, Firefox, Chrome, etc. Then I set up a symbolic link from the usual Chrome cache directory to this new cache directory I created. As a result, Chrome continues to store cache files in its default location, but because of the symbolic link, the files are actually stored on a whole different drive and location. Still no way to control cache size, but at least, changing the location helps.

Here's how to do it on Vista or Windows 7. If you are using XP, read this section then follow the additional instructions which follow.

1. Shut down Chrome. Open Task Manager and make sure that the Chrome process is not running.
2. Choose where you want the cache to be and make a directory there for it. For example, in my case, I made a directory on drive S (my scratch drive) like so: S:\Chrome Cache and Settings\.
3. Find the default Chrome Cache directory. In Windows 7, it is C:\Users\{username}\AppData\Local\Google\Chrome\User Data\. It may vary on XP or Vista. Make sure you replace {username} with your actual user name.
4. Move the entire "User Data" directory to the new location. In my case, it went from C:\Users\{username}\AppData\Local\Google\Chrome\User Data\ to S:\Chrome Cache and Settings\User Data\.
5. Open an elevated command prompt (right click command prompt and click "Run as Administrator". In the command window, type:
mklink /J “C:\Users\{username}\AppData\Local\Google\Chrome\User Data” “S:\Chrome Cache and Profile\User Data”
Make sure you replace {username} with your actual username, and replace S:\Chrome Cache and Profile\User Data with the actual path to the new location of your User Data directory.

That's it. This will create a symbolic link from the original location of the User Data directory to the new location. Chrome will continue to dump files in its default location, but since you created a "junction" type symbolic link (that's what the /J flag is for in the mklink command), Chrome remains unaware that it's following a symbolic link, and continues to work as usual. However, the files now go to the new cache location.

Be aware that the User Data directory contains more than just the cache. It also contains cookies, bookmarks and other user data. This is how I wanted it, so I made the link like that. However, if you only want to move the cache and nothing else, dig deeper into the User Data directory, and you will find inside it a subdirectory named "Cache". If you want to relocate only that, then move that directory to a new location instead of the User Data directory. Change the mklink command accordingly, to make a symbolic link only for that directory.

Since my purpose was to avoid fragmentation on my system drive, I moved the whole User Data directory, because the non-cache stuff in it (cookies, bookmarks, etc.) also change frequently, and are also therefore prone to fragmentation.

If you are using XP or Windows 2000, note that the mklink command is not available in the command shell. Both XP and Windows 2000 do in fact support junction type symbolic links, but the mklink command is missing. So if you use either of these two operating systems, you will need to download a utility to make the symbolic links.

Microsoft has a utility for this purpose available for download at their Technet site. It's called "Junction" and you can download it at:http://technet.microsoft.com/en-us/sysinternals/bb896768.aspx.

You would then follow the procedure as described for Vista and Windows 7, but you would use the "junction" command instead of "mklink", like so:

junction C:\path-to-directory\User Data “S:\path-to-directory\User Data”

Make sure you replace "path-to-directory" with the actual paths to your original and new locations for the User Data directory.
Re: Needed Feature: Cache Size/Location N.T. 12/12/09 9:43 PM
I NEED TO LIMIT THE CACHE SIZE!!
It takes hundreds of MBs for just a cache, wt the f..
Re: Needed Feature: Cache Size/Location mivadar 1/4/10 6:17 AM
Thank You Xenofon for the work-around.

Just bumping / adding to this, because I really think that this is a crucial feature (especially limiting the cache/temporary files size), and it is the main reason why I don't have the otherwise faster and better Chrome as my default browser.
I don't have enough space on my system partition for an infinitely growing cache.
Re: Needed Feature: Cache Size/Location gsatix 1/27/10 12:55 AM
I'd like to see "empty cache on exit" option either.
Re: Needed Feature: Cache Size/Location Bapabooiee 1/27/10 1:06 AM
Well, you guys are in luck (BTW, great work-around, Xenofon), since Chrome now has two startup switches that you can use:

--disk-cache-dir
and
--disk-cache-size

Simply close Chrome, right-click your Chrome shortcut, click Properties, and then in the field labeled "Target:", make it look something like this:

"...chrome.exe" --disk-cache-dir="CACHE_DIR" --disk-cache-size=N

Where 'CACHE_DIR' is the new cache location, and 'N' is the cache size limit, in bytes.

Use whichever switch you need, or both. Keep in mind, however, that these features may not be completely stable yet. But you probably shouldn't have any problem with using them.

And to anyone who's interested, I caught gander of the existence of these switches directly from a source code file for Chrome. See here:


Hope this helps!
Re: Needed Feature: Cache Size/Location Xenofon 1/27/10 2:57 AM
@Bapabooiee

Thanks, it's good to know that Chrome has this new feature.

I'd still prefer it if they implemented this from a menu within Chrome, like every other browser, such as Firefox, IE, Opera, Safari, etc.

The problem with command line switches is that they are fine if you're the one starting Chrome. But if Chrome is your default browser, it can be launched by any other program when it needs to access a web page. It could be your music player, it could be any program (like all the apps in Adobe CS4) that use the browser to display help files. It could be anything.

And when these programs launch Chrome, they're not using your command line switches. Perhaps there is some registry hack that would do the same thing, and force any program launching Chrome to use these switches. If there is such a hack, I don't know what it is.

I tend to think that such hacks should not be needed, and that changing cache size and location should be an integral part of the browser.
Re: Needed Feature: Cache Size/Location Bapabooiee 1/27/10 2:32 PM
@Xenofon: There is such a hack, actually. The registry key is:

[HKEY_CLASSES_ROOT\ChromeHTML\shell\open\command]

You could add the switches to that key, and it would work even if launched by another application. Though, as you said, that isn't generally feasible for most users.

On the other hand, would not opening Chrome via the shortcut first (I have Chrome open 24/7), thus having it opened with the switches you wanted, and then opening, say, a link from another app be an effective way to get this to work? If you do that, it'll open the link with the already-open Chrome instance - where the cache limit and/or cache location switches are applied.
Re: Needed Feature: Cache Size/Location degarb 2/3/10 12:53 PM
I dont buy that when cache limit is reached, a browser must delete a file for each file retrieved.  If limit reached,a delete oldest files routine could be triggered.

Now, I am more interested if these switches can be used in linux?
Re: Needed Feature: Cache Size/Location Stratman69 2/21/10 10:56 PM
Xenofon, please help! I followed your instructions and I receive the following (copy and pasted from my Command Propmpt entry):

mklink/J "C:\Users\Stratman\AppData\Local\Google\Chrome\User Data" "F:\Chrome Cache and Settings\User Data"
Cannot create a file when that file already exists.

What am I doing wrong? I moved the User Data folder into my new folder like you said (the original is still there). I really want to get this to work as I have a new SSD for my OS and just found out about how the Chrome cache is not good for it. Couldn't we just install Chrome in another folder as well instead of the C Drive? Sorry if that's a total newb question.
Re: Needed Feature: Cache Size/Location Xenofon 2/22/10 3:46 AM
@Stratman

You got the error because you copied the User Data folder from C: to F: and like you say, you now have two User Data folders. It's telling you it can't make a link because a folder with that name already exists.

If you read through my instructions again, it says:

4. Move the entire "User Data" directory to the new location. In my case, it went from C:\Users\{username}\AppData\Local\Google\Chrome\User Data\ to S:\Chrome Cache and Settings\User Data\.

That's MOVE, not COPY. You copied, that's why you have two copies of User Data now, and that's why you're getting the error.

What you need to do is this:

1. Delete the User Data folder from the new location on F.
2. Move it from the original location to the new location (move means cut and paste, not copy and paste)
3. Then use the mklink command as described.

I have suggested this rather than the simpler expedient of simply deleting it from the original location and making the link, because you may have saved files and settings since the time you posted this question. This way, those will also be saved.
Re: Needed Feature: Cache Size/Location Stratman69 2/22/10 10:13 AM
Xenofon,

Thanks! That worked. Yes, MOVE and COPY are not the same, I should have read "closer". Would you know if this command and instructions can be used to move other folders (Documents, Pictures, etc.) from my C Drive to an external drive? I would like to keep as little a possible on my SSD.
Re: Needed Feature: Cache Size/Location Xenofon 2/22/10 11:46 AM
@Stratman

Yes, you can make links to any directory that way. But that is NOT the recommended way for moving the location of the Documents and Pictures folders. If you use the link method for moving any of user folders that Windows sets up, like My Documents or My Pictures, YOU WILL RUN INTO PROBLEMS.

There are many ways of moving the My Documents and My Pictures folders. You could move the whole Users directory if you wanted to, which includes those two folders, and more. However, you need to do that in the right way otherwise Windows will be confused.

The method to move My Documents or My Pictures varies with the version of Windows you are using, eg, XP, Vista, Windows 7, etc. Do not use the wrong method for your version, or you will have problems.

Assuming you are using Windows 7, the proper method is described here on Microsoft's Technet forum:

http://social.technet.microsoft.com/Forums/en-US/w7itprogeneral/thread/dd5d41d7-a8bf-42d7-ba80-031b24cfaeb2/

It only takes a minute to do, but make sure you follow the steps exactly as described there by Magon_67. One thing that he doesn't mention in his answer which might be confusing is that when you go to C:\Users\Stratman in Windows Explorer, you may see TWO directories named My Documents. Look at the icons next to them. One will have the regular yellow folder icon, the other will have a blue arrow icon. You want to move the one with the yellow folder icon, NOT the one with the blue arrow.
Re: Needed Feature: Cache Size/Location monkey1230405 2/26/10 11:26 PM
@Xenofon
Thank you SOOOOO much for your solution re mklink
It works brilliantly and I haven't had any problems.

One question though. How do you reverse this process, or remove the link
Not that I need to, but I'm just curious.
Re: Needed Feature: Cache Size/Location Xenofon 2/27/10 1:18 AM
@monkey123405

Lots of ways to delete the links but one warning - DON'T use Windows Explorer to delete them. You may accidentally delete the files too, not just the symbolic link. Best way to delete them is through a command prompt. The "rmdir" command will delete the symbolic link, but not the files in it. So you can open a command prompt in the directory that contains the symbolic link, and type "rmdir <linkname>". After the link is deleted, just copy the User directory back to its original place (to the directory where the symbolic link was).

As always, it's safer to back up before you experiment. Just make a copy of the linked directory, with all its subdirectories and files, to a safe place. Then if something goes wrong you can always copy it back
Re: Needed Feature: Cache Size/Location monkey1230405 2/27/10 5:53 PM
@Xenofon
thanks for the reply.

I now have another problem which involves my laptop with an SSD, with limited space. I can't symlink it to anything now, so I want to limit the cache by applying a switch. I've tried all the variations of the switch provided by Bapabooiee, by changing the target to "...chrome.exe" --disk-cache-size=N, where N is in bytes, and in my case i tried limiting it to 1MB, so typed in 1048576 in the place of N. So, it looks like "...chrome.exe" --disk-cache-size=1048576
But I haven't tried the registry key switch, which I presume is the same thing.
Any suggestions?
I will update when I've tried the registry key, or I solve the problem.
Re: Needed Feature: Cache Size/Location monkey1230405 2/27/10 6:13 PM
Hmm..don't think i have much success with the registry key
I went to [HKEY_CLASSES_ROOT\ChromeHTML\shell\open\command] and I typed in "...chrome.exe" -- "disk-cache-size=5242880" changing it from "...chrome.exe" -- "%1"
because i thought i should make it bigger, but the cache still goes over 5MB
Actually, does this switch control the folder "cache" inside "...chrome\user data\default\" and if not, what does it control?

Any suggestions, including typos (such as spaces where there shouldn't be and so on), and other workarounds for cache size?
Re: Needed Feature: Cache Size/Location Xenofon 2/27/10 8:01 PM
@monkey1230405

Sorry, I don't know about the command line switches and registry key question. That was Bapabooiee's suggestion. I haven't personally tried it.

Perhaps Bapabooiee will see your question, and answer. If not, maybe someone else can help.
Re: Needed Feature: Cache Size/Location monkey1230405 2/28/10 9:32 PM
@Xenofon
Don't worry, I managed to do a bit more research and finally got it to work.
This is what I did:
I went to the Google Chrome shortcut, right click, properties. Then under the Shortcut tab, in target, I typed in:
"...\Google\Chrome\Application\chrome.exe" --disk-cache-size=1 --media-cache-size=1
and voila, the cache and media cache folders don't fill up with webpages and grow anymore (but still contains some small info, not exceeding 1MB)
I think the trick was to apply both disk-cache-size and media-cache-size, but it also could be the fact that the parameter is set at "1".
I'll play around with it more, and hopefully get an update.
Re: Needed Feature: Cache Size/Location monkey1230405 2/28/10 9:53 PM
Ok, I have my final update.
It was all to do with the switch --disk-cache-size=N, where N is in bytes...or is it?
The --media-cache-size=N switch didn't affect the size of the Cache folder, but I haven't figured out if it affects the Media Cache folder (because the switch should be for that folder) except when I was testing it, the folder was never recreated after I deleted it the first time.
Ultimately, this was the combination that worked for me
"...\Google\Chrome\Application\chrome.exe" --disk-cache-size=1
and this one works as well
"...\Google\Chrome\Application\chrome.exe" --disk-cache-size=1 --media-cache-size=1

The trick was this: for the switch --disk-cache-size=N make N a really small number, ideally make it 1
However, DO NOT make it zero, because that's what (I believe) applies a parameter that actually means make the cache size infinite, rather than nil.

Also, I still debate the fact that N is actually in bytes. I thought I would be generous and allow N to be 5242880 bytes (or 5MB) for the cache, but the folder still ended up surpassing 5MB to around 15-20MB, and I kept browsing, it would have just sky-rocketed.

My condition now: I now happily have a Cache folder that is stuck on 580KB located in
C:\Documents and Settings\[user]\Local Settings\Application Data\Google\Chrome\User Data\Default
(for Windows XP) and the Media Cache folder (that should be) in the same directory doesn't exist (because I deleted it prior to applying the switch)
I still see everything I used to see, including the little windows when you open a new tab, etc..
The internet is still extremely fast, and I have now resolved the problem of reducing the number of writes to my SSD
Re: Needed Feature: Cache Size/Location david.caballeroj 3/8/10 6:07 PM
For the guy who wanted to disable caching altogether, try this one:

--disable-local-storage

Just saw it at:   http://src.chromium.org/svn/trunk/src/chrome/common/chrome_switches.cc
Re: Needed Feature: Cache Size/Location O.o 3/10/10 8:48 AM
@Bapabooiee

Thanks for the tip... I had to go digging around in the registry to get my changes to affect the Chrome link off of the Start Menu, the one Windows assigns in the "Show on Start Menu" option of Customize Start Menu.

I believe this was the necessary key:
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\Google Chrome\shell\open\command]
Re: Needed Feature: Cache Size/Location fredl99 3/29/10 1:05 PM
This is for the Linux people here:

@Bapabooiee
Thanks for the hint.

I too can confirm monkey1230405's observations: The best value for a smallest cache-size seems to be "1".

In order to "disable" caching altogether I simply defined --disk-cache-dir="/dev/null/", which leaves my harddisk alone after all, whereas "--disable-local-storage" did not work as expected -> the cache-dir was re-created and populated again.
Re: Needed Feature: Cache Size/Location PA Systems 4/5/10 8:00 AM
Why is it that someone can't come up with an extension or an app to facilitate this. Not all of us are code savvy and this solution presented is just a tad too geeky. Can a Chrome Developer respond to this question. 2GB of I/O commands to a hard drive seems excessive.
Re: Needed Feature: Cache Size/Location fanjules 5/5/10 12:35 AM
Uninstalling Chrome for the time on this machine now.  The i/o issues are both a performance and space problem.  Firefox has a simple option accessible without hacks to set the cache size to 0mb, where it is intelligent enough to simple use RAM.  How hard can this be given we're on version 5 now?  Maybe in the future I will setup a RAM disk, but I shouldn't have to!
Re: Needed Feature: Cache Size/Location fanjules 5/5/10 12:44 AM
Apparantly it seems that incognito mode puts everything in RAM (unless it's just a temporary file storage)?  Therefore, all the code should already be there... we just need to have the RAM storage behaviour of incognito mode but without the privacy features. ;)
Re: Needed Feature: Cache Size/Location Mr. CookenBoo 5/6/10 4:40 PM
+1
Google chrome definitely needs an option (in the tools menu, for example)  to limit the amount of disk cache/space that is used. Right now for me, it just keeps sucking up multiple gigabytes on my hard drive.
Re: Needed Feature: Cache Size/Location osanowo 5/8/10 11:25 AM
Yep it's madness; too bad really.
Not only does it become  HUGE, but I/O is an SSD killer...
I want to keep mine alive as long as possible, so back to Firefox until that setting is implemented.
So surprising.
Re: Needed Feature: Cache Size/Location Nathan Hawks 5/21/10 11:40 AM
Not positive but it seems that the tip from fredl99 to entirely disable cache by piping it to /dev/null on linux, works fine.  My netbook's hdd activity is about zilch now.  This probably added a year or more to my ssd hdd lifespan, thanks!
Re: Needed Feature: Cache Size/Location jbosari 6/7/10 1:05 PM
Bloggers absolutely NEED this fix. How can I look at the new version of my page as I make corrections? I know you guys are working your tails off, but this one should be a top priority!
Re: Needed Feature: Cache Size/Location wecoughtoomuch 6/20/10 1:02 PM
After using the mklink/junction tool, I'm beginning to notice my browser running noticeably slower. I have Chrome installed on my SSD, and i switched the whole User Data folder over to the other 7200rpm hard drive to avoid fragmenting files. Does anyone know if junctioning the User Data cache over to another hard drive is supposed to make chrome sluggish? It has never really behaved like this before. I would expect minimal browsing difference, if anything - maybe a little slower, but not THIS much. Any help is appreciated.
Re: Needed Feature: Cache Size/Location Xenofon 6/20/10 2:38 PM
@wecoughtoomuch

It didn't make any difference in speed at all to me. There is no reason why it should, all that is happening is that it's storing files in one place rather than another.

In your case, it seems like you went from storing on an SSD to a regular disk, which would account for the sluggish performance. There's a huge difference between SSD and regular disks, specially when you're storing hundreds of little bitty files, which is what happens during normal browsing. That's why people buy SSDs.

You might want to use command line switches to limit the cache size and keep it on the SSD. Check out the posts by monkey1230405 in this thread. He's using an SSD and figured out some way to limit the cache size but still keep it on the SSD.
Re: Needed Feature: Cache Size/Location linuxgeex 6/26/10 2:25 PM
Woohoo!  At least that works for developing.

The real problem though is with real-world users and Chrome caching POST requests.  POST should *never* be cached, just like PUT should *never* be cached.  The only thing which should ever be cached is GET, and even then only if the cache-control headers and expiry tags in the content allow it.

Unfortunately, it seems that Chrome's developers care more about speed than usability or standards compliance.
Re: Needed Feature: Cache Size/Location galopped 8/14/10 5:52 AM
for People who are annoyed by the amount of data chrome is filling up Your hdd with try Ccleaner at www.ccleaner.com. an all round cleaning soft for registry, browsing cache etc. I've been using it before i've started using chrome and it's a very helpful FREE software so check that out.
For guys who use SSD sorry i thnk You are better of without chrome for now because this will not stop saving the data it would only help to get rid of it in one click.

For developers however, or anyone who can offer me a solution on my particular problem is that i would like to have chrome saving cache but only for website content like for example i don't want to download a you tube video all the time if i click on a back button, because i've already watched it. the reason for this is because i use mobile broadband and it really can add up to a lot of unnecessary bandwith.
im using a netbook with win xp and mobile broadband. im not a programmer but not a comlete beginner eihter. i could probably do the workarounds written above however i dont think any of them would help my problem.

a guess chrome devs wrote the soft in the way that it saves a "printscreen" image of a page every now and then(or maybe all the time?) on the disk which it would show as a thumbnail in the start tab when You load the program, unless Your settings are different.
i really don't mind this , i mean the feature of tabs but it really should be done in a different way where it doesn't fill up the hdd with unnecessary image files. i think(although not sure) that opera found a better way to do this.
also it looks to me that the options of chrome are made for dummies(no offence here) but i think it could really include an advanced options menu where the "geekier" people could personalise the browser more to suit their needs.

i think i might have gone a little bit off topic here but these features should be essential in any browser(actually they are except probably only chrome LOL)
to add some conspiracy theory to the whole thing the reason for this might be for chrome to collect as much user data as possible(even if anonymous) and "build" on that. probably someone forgot to write a "line" of code where if You turn off sending statistical usage data than don't save all the bull LOL.

anyway i still love the chrome now in ver 6 speed cleanliness of design etc. footprint? erm back to the beginning of the topic...
Re: Needed Feature: Cache Size/Location Anonymous 2010 9/8/10 6:00 PM
Summarizing what all the good folks described above this is what worked for me:

1) To control the cache when you invoke Chrome by clicking on a link: go to your registry and change [HKEY_CLASSES_ROOT\ChromeHTML\shell\open\command]
From:
"C:\Users\You\AppData\Local\Google\Chrome\Application\chrome.exe" -- "%1"
To:
"C:\Users\You\AppData\Local\Google\Chrome\Application\chrome.exe" --disk-cache-size=1 -- "%1"

2) To control the cache when you invoke from a shortcut: go to your Start Menu and change the properties of the Google icon
From
C:\Users\You\AppData\Local\Google\Chrome\Application\chrome.exe
To:
C:\Users\You\AppData\Local\Google\Chrome\Application\chrome.exe --disk-cache-size=1

3) To control the cache when you invoke Chrome by clicking on other shortcuts (desktop, task bar, etc): Delete those shortcuts and drag/copy them again from the one in the Start Menu which you just changed.

4) The clean up:
4.a) go to Chrome and under "Options" / "Under the Hood" do a "Clear browsing data..."
4.b) Close Chrome
4.c) Go to C:\Users\You\AppData\Local\Google\Chrome\User Data\Default\Cache and if there is some stuff there delete it.

5) Check your handy work: Open Chrome in the different manners referred above and browse away.

6) Expected results: In my case only 5 files got written to C:\Users\You\AppData\Local\Google\Chrome\User Data\Default\Cache . They were data_0, data_1, data_2, data_3 and index. Nothing else afterwards no matter how much I browsed.

Thanks!
Re: Needed Feature: Cache Size/Location Emamama 9/16/10 1:27 PM
okay we can say there is a way to tweak the cache size,

but why do we need such trouble steps for this simple setting?

EVERY, EVERY OTHER browser can control cache size in the main option page

Why do we need to set the shortcut or even the registry for that?

It is still ridiculous
Re: Needed Feature: Cache Size/Location kevinmarkwell 9/26/10 8:13 PM
Great workarounds everyone! But, grrr, I've just discovered folder permission setting doesn't work with Ubuntu. Chrome renames the existing Cache folder as "old_Cache_000", and uses a new "Cache" folder. I can't believe Google haven't made a UI for caching control.
Re: Needed Feature: Cache Size/Location isidroco 10/2/10 11:17 AM
Google chrome is evil. Will stick to Firefox, with it's simple disk usage control and rational update policy (to check when it runs, and not as an invasive Scheduled task)
Re: Needed Feature: Cache Size/Location keliori 10/20/10 2:16 AM
Can we disable cache in google chrome yet? I want it to be totally disabled on my browser because I use Squid cache proxy.
Re: Needed Feature: Cache Size/Location gniw 10/29/10 11:24 AM
I made the wrong decision to upgrade my OS to "Snow Leopoard". And when I first found Chrome, it was the fastest browser and I thought it has brought some sanity back to the upgrade. But after less than a day it has become even slower than Camino.

Google Chrome MUST have a menu option to completely disable or limit the cache. This option is more important on slow computers thanfast ones :-(
Re: Needed Feature: Cache Size/Location Astronaught 12/15/10 4:17 PM
That's Google going the Apple way:  hide the more "advanced" settings/features far far away from the users.
Re: Needed Feature: Cache Size/Location rbleeker 12/17/10 1:47 AM
i would like to second all the requests from users here asking for a way to disable/limit the cache of Google Chrome through the UI. I work in a corporate environment with a lot of Linux machines. The users here have limited diskspace in their home directory, which Google Chrome keeps filling up with it's cache at the moment. In the past we have had the same problem with Firefox, but we've taken steps to force some user preferences for that browser which disable the cache entirely, however there seems to be no such option for Chrome. So please implement a user setting for this.
Re: Needed Feature: Cache Size/Location kieflogic 1/18/11 2:33 PM
Why is Google making this so complicated?  I can only assume it's because Chrome is not actually as fast as other browsers. Google knows this so they don't make the cache limit easily accessible.  Prove me wrongand put it in the options where the layman can find it!
Re: Needed Feature: Cache Size/Location maxtyler 1/26/11 11:47 AM
Hii im having a problem with chrome cache i work with lots of images and videos and since i have a comparitive low internet speed so i prefer big cache i prefer around 2-3gb so i used this chrome switch  "...chrome.exe" --disk-cache-size=999999999999999999999. and it worked but recently after i formated my pc this switch doesnt seem to work properly. im using the same config but the cache wont go over 350mb i tried with chrome 5,6,8,10 and none of them works anymore please help i really need that fixed i even tried portable chrome since i have lappy so thought it would be good i can easily transfer the cache and work there but even the portable one doesnt work :(
im using windows 7 ultimate sp1 x64 and lappy win 7 home premium x86. i tried it on both but the cache wont budge over 350 i even tried the registry switch but none of them works anymore i donno what happened please help :(
Re: Needed Feature: Cache Size/Location huangjs 1/29/11 9:32 PM
I wish the cache size and location can be adjusted from GUI.
Command line is not good enough!
Re: Needed Feature: Cache Size/Location sp4zz 2/16/11 2:06 PM
This is hilarious.

Google touts Chrome as the browser of the future, but has of yet to implement an easy way to control local web cache.

I mean, seriously? Don't make me laugh.

This is why, friends, that while it still has it's own share of problems, I still use Firefox.

Hey, Google, stop spying on your users long enough to get your shit together and implement a feature that even the lowliest of browsers already have.
Re: Needed Feature: Cache Size/Location markvc 3/3/11 8:44 AM
This feature needs to be added to about:flags.  Much like Firefox's about:config, Google needs to improve the about:flags system to cover off more, if not all, command line flag options currently available.

Although adding it to the chrome shortcut works, you MUST edit the registry every time an update is rolled out to enable it to be used if you have another app automatically launch Chrome for you, thus making Chrome your default browser problematic if you are running an SSD as you are trying to limit writes to it.

With SSD's becoming more prevalent (even I bought one, and they are amazing as an OS drive), Google needs to understand this.  The slow beast that is known as Microsoft, who takes eons to implement anything, has this in their browser and has had it for ages.
Re: Needed Feature: Cache Size/Location Pmaker 4/12/11 12:26 AM
How I can do this in OSX. Limit disk cache?

I have a SSD disk, i can hear the disk read and write with chromium. This don´t happens with safari or with firefox. Google needs to understand this.
Re: Needed Feature: Cache Size/Location horiachirculescu 5/4/11 11:17 AM
Please add a menu option to completely disable (if the user chooses this) and to limit the cache size.

I had a recent problem with silverlight (Xaml Parse Exception). Only after the cache was cleared this problem dissapeared.
Re: Needed Feature: Cache Size/Location eltranced 5/15/11 3:54 PM
if cache size is increased will it improve redrawing of pages loaded from back button?
Re: Needed Feature: Cache Size/Location eltranced 5/15/11 3:54 PM
and if no is there something that will?
Re: Needed Feature: Cache Size/Location doubletap33 6/21/11 6:03 AM
Hello everyone. I got a problem. First is getting around.Now that I got there. I have another problem. How do I reset my cache size? Shut chrome off. Right click properties. OK. Then in the target box add this  "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"--disk-cache-dir="CACHE_DIR" --disk-cache-size=N
. Is this way I can reset my cache size? Guess what my Chrome crashed for the first time. Whoa Google Chrome crashed!!!!

Thank u if anyone can reply
Re: Needed Feature: Cache Size/Location Mr.bad.man.jay 7/9/11 6:36 PM
Grr while it's a workaround and some ppl are using symbolic link's I just want an easy way to change the cache location, Ill be buggered if I have to remember this workaround a year from now when I upgrade what ever hardware/software and have to install chrome like I will next week.. Common dev ppl with SSD's need this option we don't want chrome writing to our SSD's every day we use it..

We just want a menu option to change drive/location/size how hard can it be,, Chrome is the only browser I use get with the program..... PLZ
Re: Needed Feature: Cache Size/Location sandeep108 8/4/11 9:45 PM
This is also one of the main reasons I still like and am using firefox. I have an SSD and have configured FF's cache to my RAMdisk. This combination is an absolute killer in terms of speed and leaves Chrome in the dust. In fact even IE's cache is shifted to the RAMdisk.
Re: Needed Feature: Cache Size/Location dynamicdan 9/5/11 2:34 AM
This is hopeless!!!!!!!!

I can't use Chrome for work purposes anymore because my development changes are only SOMETIMES up to date... : (

I'm pretty sure that Googles strategy is that only developers should use the 'no cache' feature and therefore it should be hard to activate (requires technical knowledge). The big problem on this side is that the cmd args haven't worked for me...
./Google\ Chrome.app/Contents/MacOS/Google\ Chrome --disk-cache-size=1 --media-cache-size=1

When loading chrome and checking the network tab of the web inspector, I still get cached resources.

All google needs to do is have a development menu switch like safari does. Then it's not obvious to every user. Heck, make the dev enable the mode on every window if required... just give us the damn option!
Re: Needed Feature: Cache Size/Location sjackwu 9/11/11 7:25 AM
I have a Macbook Air with SSD, and I want to use RAM disk to avoid the SSD wearing out too soon. I need to switch to Firefox because Chrome doesn't provide this particular feature on Mac OS.
Re: Needed Feature: Cache Size/Location blueyed 9/15/11 1:28 PM
Using the following command line flags works for me to disable it (for Chromium):
    --disk-cache-dir=/dev/null --disk-cache-size=1

On Ubuntu/Debian, you can just add it to CHROMIUM_FLAGS in /etc/chromium-browser/default and it will be used when starting Chromium.

I am using a local HTTP proxy (intercepting) on a RAM disk and do not want Chromium to store the same files on disk (SSD) again.

I have just blogged about it, too:
http://daniel.hahler.de/disable-disk-cache-in-chromium-google-chrome
Re: Needed Feature: Cache Size/Location wasabi_peas 9/28/11 7:21 PM
@ Xenofon

Hi Xenofon, I am in a situation similar to Stratman69 trying to get some longevity out of an older ssd in Windows Vista (not the best for ssds but i jumped into the experimental ssd wagon early).

I have applied your neat solution of moving the entire user data folder into an always-on external hard disk drive.

The odd thing is, when i stream a video off Youtube, I still see my primary C drive dwindling down in free space. I say this is odd because clearing the browser cache always restores that used space back to free.

I have checked to make sure the browser cache and all the other folders do sit in the user data directory.

Also, i have tried the properties target solution --disk-cache-dir="CACHE_DIR" but the same issue still exists.

I have checked that both solutions have indeed been applied (re-directed user data and cache directories).

Do browser video streams not get shuttled to the browser user data directory?  Would I need to re-direct a Windows cache somewhere, and how?

Thank you so much!!
- wasabi
Re: Needed Feature: Cache Size/Location ckcolink 10/6/11 12:20 PM
I DONT UNDERSTAND, GOOGLE SHOULD MAKE IT SIMPLER LIKE INTERNET EXPLORER
Re: Needed Feature: Cache Size/Location N.T. 10/6/11 9:32 PM
@ckcolink Chrome is now Over-Simple that omit some basic features...and yes it is 2011 version #16.xxxx and still no this stupid easy option
Re: Needed Feature: Cache Size/Location 邵小妞 10/19/11 6:51 PM
好吧。。。好吧。。。
Re: Needed Feature: Cache Size/Location PeterParslow 10/22/11 4:41 AM
Unfortunately, the registry answer only seems to apply to a single user set up. Having got Chrome installed once for all users (an odyssey in itself, only available by installing Chrome as part of an administrative install of Google update!), I would hate to end up with a single cache for all users - which surely would be what I get if I change a setting in HKEY_CLASSES_ROOT\ChromeHTML\shell\open\command

Unless there's some syntax for CACHE_DIR which Chrome would interpret with a pattern that it can put the user name in...
Re: Needed Feature: Cache Size/Location Justin Cram (dyingjedi) 12/1/11 2:03 PM
Just got my SSD and still want this feature and am getting another brand new XPS 17 w/16/GB SSD go to rectify this issuse! is there been any other changes to this are these commands to useable in the latest release in google chrome version 15.0.874.121, would like to know an update to these needed features thanks!
DyingJedi
Re: Needed Feature: Cache Size/Location Justin Cram (dyingjedi) 12/1/11 2:14 PM
Not sure you all noticed but this thread has been marked as completed and Answered! thought you all like to know! so in otherwords google isn't listening to this thread anylonger it's not marked as important If any starts another for google to see again please post updated link here thanks from us fellow Google Cache Enthusiasts, SSD RAMDISK OPTIMIZER!

HI5
DyingJedi
Re: Needed Feature: Cache Size/Location degarb 12/3/11 6:31 AM
If you manage several computers over course of years (Each time you must re research the un-intuitive solution for steps) the command line option is STUPID!  Best solution is uninstall Chrome.  This is sad.

FIX  F-I-X  lazy programmers.
Re: Needed Feature: Cache Size/Location stellapips 12/30/11 12:33 AM
On our computer we had NINE GIGABYTES of absolute junk which caused it to grind to a halt and then proudly display the blue screen of death. Me being considered as the one who used it the most beforehand, I am not allowed on until the computer is cleaned up. How can I possibly explain all of this to my dad, who is basically a technology newbie?  Chrome needs a built-in option to change this.
Re: Needed Feature: Cache Size/Location demidov-alex 1/16/12 8:38 AM
It is clear how to change Chrome cache size limit. But what value it has by DEFAULT?
Re: Needed Feature: Cache Size/Location CTrexob 2/26/12 12:50 PM
--disk-cache-size

If you use this with no parameters will it use as much cache as possible? 
Re: Needed Feature: Cache Size/Location CTrexob 2/27/12 6:08 PM
The cache-size won't work. I'm stuck with a max size of: 
  • Max size: 83886080

I can not raise this. Help?
Allium Cepa 3/18/12 11:29 AM <This message has been deleted.>
Re: Needed Feature: Cache Size/Location paradive 6/23/12 11:58 AM
but will that change those globally, or just for that session?

why this is not in options baffles me.

linuxgeex 8/3/12 1:30 AM <This message has been deleted.>
More topics »