Let's stop Google Chrome from killing the hard drive's SSD resource. Transferring the Yandex browser cache to another drive. Speeding up Firefox. Find out the size and location of the browser cache from Google How to move the browser cache to another drive

To manage the cache in Chrome, only a few options are officially available, and they are arguments to be launched from the command line (the easiest to implement, but not the most convenient to use method):

  • --disk-cache-dir=<путь к папке>: cache location
  • --disk-cache-size=<размер в байтах>: cache size
  • --user-data-dir=<путь к папке>: folder of all user data (profiles, cache, ...)

Actually, all you need is to launch Google Chrome with the correct parameters. All of the following applies equally to Chromium.

Windows

In Windiws 7, Chrome by default stores the cache somewhere in the area C:\Users\username\AppData\Local\Google\Chrome\User Data\Default\Cache . (For other OS see)

To change the cache location permanently, the following steps are required:

Step 1. Change the shortcut

RMB by shortcut ⇒ "Properties"⇒ tab "Label"

  1. Create a folder somewhere for the future cache.
    For example, at "D:\temp\Google_Chrome"
  2. In field "An object", separated by a space, add the full path to this folder as a parameter:
    --disk-cache-dir="D:\temp\Google_Chrome"

Now the address "D:\temp\Google_Chrome" will be stored Google Chrome browser cache. After restarting Chrome, folders will appear in it Cache, Media Cache etc.

To limit the cache size, for example, to 300MB, add another parameter separated by a space:

Disk-cache-size=314572800
(300 * 1024 * 1024 = 314572800 bytes)

If you want to get rid of the cache completely, set its size to 1 :)

But: If Chrome is the default browser, then when launched from third-party applications, it will still launch with default settings. Therefore, let's move on to step two.

Step 2. Edit the registry


The final command to run in the registry will look something like "C:\Users\Martin\AppData\Local\Google\Chrome\Application\chrome.exe" --disk-cache-dir="D:\temp\Google_Chrome" --disk-cache-size=314572800 -- "%1" (for Win7).

Step 3. Alternative 1

Alternatively, you can not edit shortcuts/registries, but simply place a symbolic link to the desired location instead of the old cache folder.

Step 3. Alternative 2

Also, instead of editing launch parameters, you can use Politicians:

  1. Open the Registry Editor.
  2. Go to the key HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Chromium and add Dword DiskCacheSize (RMB on Chromium ⇒ newDword (32-bit value)).
    Set the cache size in bytes.
  3. To set the cache folder, create String named DiskCacheDir and set the value to be the full path to the required folder.

Linux

Everything is similar to the situation with Windows shortcuts. It is worth correcting the alias for launching Chrome so that it is called with the necessary parameters.

An interesting usecase is storing a cache in RAM (tmpfs):
$ google-chrome --disk-cache-dir=/tmp/cache

Take a look at the arch linux page about Chromium to find out more interesting things :)

Proper transfer of Chrome and Firefox cache to RAMDisk. And may the hard drive live long. Chrome cache path

How to change the cache storage location of Firefox, Chrome, Opera browsers

If you have an SSD drive and want to save space on it, there are many different ways to do it. One option is to transfer the browser cache to your hard drive. This is due to the fact that any browser constantly records and deletes temporary files during operation, which can significantly affect the free space on the disk. You can also look at the article on how to disable the PDF-Viewer built into browsers.

So, for different browsers in order.

Google Chrome and all browsers based on the Chromium engine

The method is suitable for browsers CoolNovo, RockMelt, Rambler Nichrome, Yandex.Browser, [email protected], as well as for Opera above version 15.

In order to change the cache storage path, you need to slightly edit the shortcut from which you launch your Chrome. To do this, right-click on the shortcut and click “Properties”. In the “Object” cell you need to add the following:

Disk-cache-dir="path"

After .exe and after a space!

In return<путь>write the desired address, it should look something like this:

By default, the cache is stored in the following folder:

C:\Users\username\AppData\Local\Google\Chrome\User Data\Default\Cache\

It must be removed manually. This method will only work when launched from the shortcut in which you added this parameter.

In order to change the cache location in Firefox, you need to go to the hidden browser settings. To do this, enter the following into the Firefox address bar:

press Enter; If the window displays, then we agree to “void the warranty.”

Right-click on the “setting name” and select New > String from the drop-down menu

1) Enter a parameter to change the path of the main cache folder:

and enter the value of the desired folder, for example: D:\cache\Firefox\

2) Enter a parameter to change the path of the Firefox offline cache:

Browser.cache.offline.parent_directory

And we write the same path as in the first parameter.

Firefox will create a Cache folder in this folder and store cached files in it. The folder with the old cache must be deleted manually. In Windows 7, by default it is located:

C:\Users\<имя_пользователя>\AppData\Local\Mozilla\Firefox\Profiles\*****.default\

Opera

Following the example of Firefox, we need to go into the deep settings of the browser. To do this, also type in the address bar:

In the list that opens we look for:

And there we choose:

Cache Directory4

Default cache path:

C:\Users\username\AppData\Local\Opera\Opera\cache\

We change the directory to the one we need, for me it looks like this:

Starting from some version 18 and higher:

We do everything as written in Chrome, just use the variable:

Disk-cache-dir="path"

That's all. I hope you found this article useful, click one of the buttons below to tell your friends about it. Also subscribe to site updates by entering your e-mail in the field on the right.

Thank you for your attention:)

skesov.ru

Transferring Chrome and Firefox cache to RAMDisk

Good mood to you all! Friends, if you remember, last time I showed you how you can organize the transfer of temporary Windows files to a virtual disk. Thus, we significantly relieve the hard drive and speed up the operation of the entire system.

So now let's move the Chrome and Firefox cache to RAMDisk. These two Internet browsers are very popular, so this article will be useful to many users of the global web.

Well, let's get started. And first in line will be Google Chrome. First, we need to move the existing cache folders to a new storage location so as not to lose any data. To do this, right-click on the "Start" icon and select "Run".

After this, you need to enter this special command.

  • %userprofile%\\local settings\\application data\\google\\chrome

In the next step, right-click on the Google Chrome shortcut on the desktop and select “Properties”.

Now you need to move the cursor to the end of the “Object” line, put one space, and then enter the following combination:

  • --user-data-dir="F:\\User Data"

Where F is the letter of the virtual disk. That is, it turns out that this is the path along which the folders we just transferred are located. That's all, brothers, the Chrome browser cache transfer was a success. But it is important to understand that this scheme will only work when you launch the program through a shortcut where a special parameter is specified.

Well, now let's move on to the no less popular Mozilla Firefox. Here, to move data to RAMDisk, you will need to do a little more steps, although everything is basically done by analogy. So, run the “Run” system utility again and enter the following command into its line.

After this, a folder with the extension .default will open, in which the profile settings are stored. Again, we move it to a new location, that is, to a virtual disk in the computer’s RAM.

But this is not all the activities that need to be done using this utility. Now enter the following command like this.

A small file will open in which you should specify a new path for storing cache files (the “Path” parameter) and be sure to correct the value of the “IsRelative” line to zero. To avoid mistakes, look carefully at the screenshot below. Also don't forget to save your changes.

So, the system settings seem to be over. Now you need to tell the Mozilla browser itself where its current cache is stored. To do this, launch the program and enter the following parameter in the address bar.

Then right-click anywhere and select “Create -line”. Next, in the setting name we write the following.

  • browser.cache.disk.parent_directory

And the value, in fact, will be the path to the virtual disk of the computer. With this all settings are completed, all that remains is to restart the browser and check whether transferring the Firefox cache to RAMDisk worked.

To conclude the article, I would also like to add that the settings that were applied to Chrome are easily suitable for the entire family of browsers based on the Chromium engine, on which, by the way, such popular developments as Yandex.Browser and Amigo are based.

And at this point the post comes to an end, if there are any unclear points, ask questions in the comments. Now, as always, let's watch another interesting video.

Sincerely, Vitalik Komarovsky

Updated: 07/31/2017 - 16:01

pronetblog.by

Welcome to my blog! If you decide to free up as much space as possible on the system disk or simply do not want data from different programs to be written to it, for example, to extend the life of the SSD, then as an option you can move the folders storing the cache of your browsers to a local one disk. You will find some tips on how to change the browser cache storage location in this article. These tips are already old and well-known, but I couldn’t help but write about them, maybe they will be useful to someone.

For example, I took the three most popular browsers Chrome, Opera and Mozila Firefox. I checked all the methods for transferring the cache myself, everything works, so if you have any questions, write, we will sort it out.

How to change cache storage location in Chrome.

In order to change the cache storage location in Chrome, just create a new folder on another drive and specify the address of this folder in the properties of the program shortcut. By default, the Chrome browser cache is located at:

c:\Users\Username\AppData\Local\Google\Chrome\User Data\Default\Cache\

We will need it so that we can delete it later and use a new location for this. So, select another local drive to store the browser cache and create a new directory there, for example Chrome, so as not to be confused. There is no need to create the Cache directory, the browser will create it itself at startup.

Then right-click on the browser shortcut and go to its properties. You should see the “Shortcut” tab open.

Disk-cache-dir=”f:\Chrome”

I chose drive f to store the cache and created a Chrome directory on it in advance, you can do it your way, you don’t even have to create the directory in advance, the browser will create it itself at startup, the main thing is to register it in the command for the shortcut. In the end, you should get something like this way:

“C:\Program Files\Google\Chrome\Application\chrome.exe” -disk-cache-dir=”f:\Chrome”

If you wrote the path to open the file incorrectly, you will see an error message.

Check again how you wrote this path, whether there is a space before the additional command, whether the quotes in this inscription are correct.

Once you have successfully saved your changes, you can launch the browser.

The folder with the cache will appear itself in the folder that you specified in the “Object” field. But Chrome allows you to transfer not only the directory with the cache, but also the entire user folder, which will be even more correct than transferring only the cache. The cache itself takes up little space, a few kilobytes, and the user directory is several megabytes, and it would not be rational to transfer only the cache. In order to transfer the entire user directory in the Chrom browser, you need to add another command in the shortcut properties, in the “Object” field:

User-data-dir=”f:\Chrome\User Data”

I immediately specified the directory in the new path: Chrome\User Data and the browser itself created them at startup, so you don’t have to specify them separately. Now, when you start the browser from this shortcut, it will start using the new directory for its files.

To avoid losing your browser settings such as simple bookmarks, visual bookmarks, etc. It’s better to move the User Data directory to a new location yourself, otherwise the browser will start with default settings.

Once you move your data to the new location, the old directory can be deleted.

How to change cache storage location in Opera.

New versions of the Opera browser are created on the Chromium engine and have many similar settings to Chrome, and this case is no exception.

First you need to find out where the Opera cache is located, so in the address bar of your browser enter the address:

opera://about or opera:about

After which you will see information about your browser, where the paths for system files will be located. They will be useful to us so that we can delete unnecessary files later.

Open the shortcut properties in the same way as for the Chrome browser and in the “Shortcut” tab, enter the following to the main path, separated by a space:

Disk-cache-dir=”f:\Opera”

Then save the result. Please note that I chose drive f, you can choose any of your own.

After this, you can launch the browser from this shortcut, and when it starts, you will see that the cache folder has appeared in the location we need.

How to change shortcut properties in Control Panel.

Please note that by changing the properties of the shortcut and adding a new path for the cache folder to it, the browser will start with new settings only from this shortcut, from the others, as well as from launching the program from the application icon, the cache will use the old one, which is installed by default .

To avoid this, you need to change the properties of all the shortcuts with which you will launch the browser. This is not at all difficult to do, since the shortcut properties open on all browser icons, both on the desktop and in the Start menu. The difficulty can be caused by changing the shortcut in the Control Panel, since the “Properties” menu does not open there by default. I will give two examples of how you can change the properties of a shortcut in the Windows Control Panel. The first is to replace the old shortcut with a new one.

Right-click on the old shortcut and select the item from the menu:

“Remove the program from the taskbar.”

Then on the shortcut that is on the desktop and which you have already changed, also right-click and select from the menu:

“Pin to taskbar.”

The second example is even simpler.

Press the Shift key and hold it down, right-click on the shortcut itself, as a result you will see the “Properties” item in the menu, go into it and change the properties of the shortcut.

How to change the cache location in Firefox.

In order to change where the cache is stored in Firefox, you will need to change the browser's system files. This is as easy to do as in previous browsers, only a little longer.

First you need to find out what our directory with browser system files is called and where it is located.

To do this, go to the “Run” command menu by pressing Win + R and paste the following command there:

%appdata%\Mozilla\Firefox\Profiles

You will see where the Firefox system folder is and what it is called, copy it to another local drive, where you will store the browser files.

Now you need to change the Mozilla settings file. To do this, you need to close the browser window if it is open and in the same “Run” window enter the command:

%appdata%\Mozilla\Firefox\profiles.ini

A text editor will open with the contents of the file, edit it. To do this, in the IsRelative line, put a zero instead of the number you will have. And in the Path line, indicate the location where you copied your files. For me this is the Firefox folder on drive F. Then save the result. Next you will need to specify our new path for system files in the browser settings. To do this, open your browser and enter in the address bar:

Agree to the caution warning and you will be taken to the browser configuration window.

Here you need to create a new line of settings, to do this, right-click anywhere in the window and select from the menu: New - Line.

Then enter a name for the setting:

browser.cache.disk.parent_directory

In the next window, enter your path for your cache folder.

F:Firefox\6gosmqge.default

This is my way, yours may be different.

After this you will see that a new row has been created. The old directory with the browser cache files can be deleted. Now you know how to change the storage location of the browser cache and can easily do it if you need it. If you do not know how to open the menu bar in the Mozilla Firefox browser, then read the article on this topic , you can do it easily. Good luck!

Sincerely, Yuri Khripachev.

Tags: cache

uznaytut48.ru

How to move your browser cache to another drive

The browser cache is designed to speed up the loading of pages you visit. Fragments of sites are recorded in it, and when returning to them, there is no need to re-download large amounts of data, because they are already in the cache on the hard drive. Most browsers automatically manage the amount of this storage so as not to overload the system resource. This way, only as much memory will be allocated as the computer can afford.


To speed up the browser, it makes sense to transfer the cache to another disk.

But sometimes computers use not an HDD as a system drive, but an SSD, which, as you know, has a very limited write/rewrite resource. And while surfing, the browser constantly records information, replacing old information with new information when the allocated space is exhausted. In this case, it makes sense to move the browser cache to another disk or to random access memory (RAM disk).

Transfer to another hard drive

The easiest way to transfer the Google Chrome browser cache to another drive is as follows:

  1. First, go to the AppData folder, which is located on the system disk in the folder named username.
  2. In AppData, go to Local, then Google, Chrome, User Data, Default, and there will be the required Cache folder.

  1. Launch a command prompt, preferably as an administrator.
  2. Enter the mklink command, followed by a space: /D “entire original path” “entire new path”.

All these steps must be performed with Google Chrome closed. To transfer the Google Chrome cache to a ramdisk, you must first create a virtual disk in RAM using a special application, and then follow exactly the above instructions. The procedure for creating a ramdisk will be discussed below, since it is relevant for all Internet browsers.

ATTENTION. Transferring the Yandex Browser cache is similar to the procedure for Google Chrome. The only difference is that in the AppData folder you need to find the Yandex folder, and in it Yandex Browser and then also User Data, Default and Cache.

In Opera, actions are performed similarly to Yandex and Google Chrome:

  • In AppData\Local, look for Opera Software.
  • Open Opera Stable, it will contain Cache.
  • Copy it to a new location, then right-click on the Opera shortcut.
  • Place in the “Object” line after opera\launcher.exe exactly the same command as for Chrome.

IMPORTANT. If Opera is the default browser, then you also need to place symbolic links. You can do this from the command line as described above.

The instructions for transferring Mozilla Firefox browser cache files are slightly different from the previous ones:


Transfer to RAM

As mentioned earlier, sometimes it makes sense to move the browser cache not just to another disk, but to a virtual RAM disk. You can create it using one of many special applications. Let's look at transferring a cache to a RAM disk using the RAM Disk program as an example:


After completing these steps, you can transfer the cache from any browser to a RAM disk, similar to the instructions above. The important question here is how much space from your RAM you are willing to allocate for cache. Agree, acting at random is inconvenient and unwise. After all, there are other programs on the computer that need RAM, and their performance should not be affected.

The Primo Ramdisk program solves this dilemma. It allows you to create a dynamic RAM disk. The point is that you only determine the maximum disk space, and the program itself decides how much can be given to the browser at the moment based on system indicators. The downside of the application is that it is paid.

Thus, the cache transfer algorithm is similar for all types of browsers. First, you copy the data folder to a new location. After this, you explain to the system and program that the path has changed. The same goes for transferring to a RAM disk. Just write the path to it in the settings. It is known that RAM is reset to zero after the computer is turned off. But in the case of virtual RAM, you can save the image during a power outage. Or don’t save, then your cache will be automatically cleared when you shut down. Leave your comments if you encountered difficulties changing cache data storage and how you managed to solve them.

nastroyvse.ru

Let's stop Google Chrome from killing the hard drive's SSD resource / Sandbox / Sudo Null IT News

Background
One day, about a year ago, I got a computer that I could take with me to the sofa - a laptop, that is. The laptop was chosen purely for work; one of the requirements when choosing was good performance. The Intel Core i3 processor seemed sufficient in terms of performance.

But, at first, the fast laptop began to irritate me more and more with its slowness. It’s not that it was stupid, froze, or the like - no, it just worked evenly slowly. This was especially noticeable if you worked on a “full-size” computer with a fast hard drive, and then switched to a laptop. The reason for this was the laptop's slow hard drive. Moreover, this is not a problem specifically for my laptop, it is a problem for all laptops, because they have slow hard drives with a rotation speed of 5400 rpm.

One day this got to me and I decided to buy an SSD. And the fastest one was chosen. After analyzing the occupied space on the C: drive and finances, it was decided to take a 64 GB SSD. And considering that with a small volume, the speed of most solid-state drives drops proportionally with decreasing capacity, the range of selected models quickly narrowed. The choice fell on Samsung 830.

But how to insert an SSD into a laptop that does not have room for a second hard drive? I immediately rejected the option of completely replacing the HDD with an SSD. A quick google led to the fact that there are still ways to install an SSD instead of the now unnecessary DVD. I was not the first with such questions, and quickly found that I needed some kind of adapter into which the hard drive fits and is inserted instead of the drive. The required adapter was found on ebay.com. The lot was called “Universal 9.5mm 2.5” SATA 2nd HDD Hard Driver Caddy For CD DVD Optical Bay.” It cost a little more than eight dollars.

It turned out that everything was simple - the main load on the hard drive was... Google Chrome! I would never have thought that a monster from a huge corporation would harm my hard drive so much.

Chrome is constantly writing something to the cache. Almost continuously. Here every 2 secondsc:\Users\User\AppData\Local\Google\Chrome\User Data\Default\Cache\ There is also a folder where the cache of the online video you are watching is written. This folder is called Media Cache. Icons, history and all that are also written. In the end, I came to the conclusion that the User Data folder is simply constantly changing, writing and reading files and killing my SSD.

A quick analysis of the Internet made it clear that this does not cause any inconvenience to Chrome engineers, since Chrome has practically no settings for this part. The settings can be forced by adding a parameter to the shortcut, and then you must launch Chrome through this shortcut, otherwise it will start without parameters. The fire fox has the same dances with a tambourine. But with Opera everything is simpler - I set it in the settings without cache, and that’s it.

It was decided to disable this damned Chrome cache so that it would not write anything to the disk at all. Add the parameter “--disk-cache-size=1 --media-cache-size=1” to the Google Chrome launch shortcut. And lo and behold! The cache is not written, and the browser... does not fly and works quite poorly. It’s especially noticeable when you open Chrome with 30 open tabs, when it loads everything again. Well, we didn’t get rid of the records completely either - something like icons and history was still written to the disk.

The second solution to the problem was to transfer the folder with the User Data chrome profile settings to the HDD. This, of course, would solve all the problems, but the question is why did I buy an SSD?

The next option, in my humble opinion, solved all my problems. I decided to use RAM Drive - i.e. keep everything in RAM, and only write to the hard drive when turned off. Considering that my laptop is either turned on or in standby mode, it will very rarely be written when turned off. Of the programs I liked, I chose Qsoft RAMDisk. Installed as a driver. In the properties I selected the disk size, file system, where to write when shutting down. I allocated 512 MB for the disk (I think a reasonable minimum of 128 MB).

Again, it was possible to specify --user-data-dir=“path to ram disk” in the shortcut parameters to redirect the profile storage, it could be registered in the registry, but if launched without a shortcut or updated, all this would not work. I started thinking about how to do it so that I could redirect it without changing anything. And then I remembered about symbolic links!

The Link Shell Extension utility was downloaded, with the help of which I actually created a “shortcut” in place of the User Data folder, a link that led to my RAM disk. Those. There was nothing on the disk, so when we went into the User Data folder we were immediately redirected to the ram disk. Moreover, what is the advantage of such a solution - neither the system nor Chrome saw any catch.

Chrome started working even faster than it did on the SSD. Very fast. Now I’ll probably even recommend to everyone to at least put the chrome cache on a small RAM disk. Personally, it’s a mystery to me why engineers don’t pay attention to the problem that chrome writes a lot and often. Reliability of information is good, but not at the cost of killing the hard drive!

As a result of the manipulations done, my chrome flies around and writes all its nasty things to the RAM. The SSD is happy and enjoys a long remaining life.

habr.com

How to transfer Google Chrome browser cache to RAM?

To speed up page loading, the Google Chrome browser caches their content: images, js scripts, css styles. All this accumulates on the hard drive and grows in size to hundreds of megabytes, if not more. Therefore, we have already looked at how to clear the browser cache and how to change the cache storage location. You can't completely disable caching in Chrome; Google suggests using incognito mode instead.

The Chrome browser is fast, but not always correct. Recently, a bug was discovered that caused extra load on the processor, which increased energy consumption and killed the laptop battery faster. The developers have fixed this problem. But there are other nuances of this browser: when surfing the Internet, cache files and other data from your user profile are saved to your hard drive almost every few seconds. This does not have the best effect on the durability of SSD drives, and traditional HDD drives tend to buzz and work slowly when constantly recording.

To correct this shortcoming, you can transfer the browser cache or the entire user folder in RAM to a virtual disk, for which it is advisable to have a laptop with at least 4 GB of RAM. The speed of accessing RAM is much higher than the speed of accessing a hard drive, so in theory you can kill two birds with one stone: speed up the browser and extend the life of the HDD or SSD. So let's get started.

Download the RAMDisk program (you can from the official website, the free version of RAMDisk Lite will suffice).

Install RAMDisk and launch RAMDisk Configuration Utility in the Start menu folder of the same name. Select advanced mode (View - Advanced)

In the main Settings window, in the Disk Size line, set the desired size of the virtual disk: it is important to find a middle ground here; you do not need to specify 100 MB or 2 GB. Here we select the FAT32 Partition file system and the Windows Boot Sector type. Press the Start RAMDisk button and wait for the startup to complete.

After that, go to the Load/Save tab and check the boxes for Load Disk Image at Startup and Save Disk Image at Shutdowm. This means that when the computer is turned off, the image of our created virtual disk from RAM will be saved on the hard drive, and when the computer is turned on, it will be loaded back into RAM without losing data.

From the top menu, select File and Save Settings to save your settings. Then stop the virtual disk with the Stop RAMDisk button and after a few seconds, start it again with the Start RAMDisk button, thereby rebooting the disk.

Half the work is done. Now you need to inform Chrome about its new cache storage location. To do this, some advise opening the Properties of the browser shortcut and in the Object line, adding --disk-cache-dir="H:\Cache" separated by a space (here H:\Cache is the created virtual disk in RAM). This method can be used if, for example, you launch the browser every time through a shortcut on the desktop. If the program opens in another way, for example, automatically when inserting a 3G modem into the laptop, then the Chrome exe will load without the specified parameters for the shortcut.

In order not to limit yourself to half measures and to do everything humanly, you can deceive Chrome by creating a link. To do this, we need the free Link Shell Extension utility (can be downloaded from the developers’ page).

Download, install and launch Link Shell Extension; the utility also has a Russian language. We do not need the program window itself. The program added what was needed to the right-click context menu.

Open My Computer and go to the created virtual disk, we created it as Local Disk H.

On this disk, create a Cache folder and right-click on it. In the context menu that opens, select Remember link source.

Then go to the directory: c:\Users\YOUR_USERNAME\AppData\Local\Google\Chrome\User Data\Default\

Since the AppData folder is usually hidden, you can open Start - Run and paste the following path for quick navigation:%userprofile%\local settings\application data\google\chrome\user data\default\

Here, with the browser closed, delete the Cache folder, then right-click and select Place as - Symbolic link, thereby inserting a shortcut. Thus, Chrome will access the Cache folder in its usual path and not suspect that it is actually located in RAM. At the same time, it is still necessary to periodically clear the cache, preventing its volume from increasing beyond the size of the virtual disk in RAM.

If you wish, you can do the same thing not only for the cache folder, but for the entire User Data folder, which includes Cache. Thus, you can move all your user data that Chrome works with into RAM: history, cookies, extension data, etc.

2notebook.net

How to move Chrome, Firefox and Opera cache to another location

When a user opens a website in a browser, data from a remote server is transferred to his computer, and some of this data is stored in a special local storage called a cache. This approach allows Internet pages to load faster when you visit the site again, but it also has its drawback.

If the storage of cached files is not periodically cleared, then pretty soon it will take up a decent amount of space on the disk. This is especially true since the cache of all browsers is located in the system partition, for which relatively little space is usually allocated.

Therefore, in order to free up additional space on the C drive, the browser cache should be moved somewhere else. For example, to another logical or physical drive. However, you may have other reasons for moving the cache, it doesn’t matter, the main thing is to figure out how to do it correctly. This is exactly what we will do. Let's start with the most popular browser, as is generally considered, Google Chrome.

Transferring Google Chrome Cache

If you have Chrome open, close it and then copy and paste this path into the address bar in Explorer:

%userprofile%/local settings/application data/google/chrome

In the directory that opens, you will see the User Data folder. This is where the Chrome cache is stored.

Copy it to any location convenient for you. Now go to the desktop and open the properties of the Chrome shortcut. In the “Object” field, add the parameter -user-data-dir=”D:/User Data” to the end of the path already there, separated by a space, and save the result.

As you already understood, “D:/User Data” is the new path to the transferred cache folder. Now you can launch the browser. From now on it will access the cache from this folder.

Note: Please note that the new cache address will only be accessed when Chrome is launched through the edited shortcut.

Mozilla Firefox Cache Transfer

Moving the cache to Firefox is a little more complicated. First, go to the profile directory, for which we enter the line %appdata%/Mozilla/Firefox/Profiles in the address bar of Explorer and press enter. In the profile park you will see a folder named xxxxxxx.default, where the line of icons is your own profile name. You will have your own, only the default extension will remain unchanged.

We copy it to the desired location, and then go to Explorer again, but to the address %appdata%/Mozilla/Firefox/profiles.ini. This will open the profiles.ini configuration file in Notepad. The bottom line contains the path to the default profile, which looks like this:

Path=Profiles/ xxxxxxx.default

We change it to the new path along which we moved the directory with the cache:

Path=D:/xxxxxxx.default

At the same time, make sure that the IsRelative parameter has a value of 0. If yours is different, correct it so that it looks like the screenshot.

Launch your browser and open the hidden settings page by going to about:config. Right-click on an empty space and select the New -> Row option from the menu.

Give the name of the new parameter browser.cache.disk.parent_directory, and as its value, insert the new path to the profile folder copied earlier.

Restart Firefox and it will start working from the new folder.

Opera Cache Transfer

Moving the Opera cache is almost no different from what we did when moving the Google Chrome cache. Using the method described above, go to the directory at %userprofile%/AppData/Local/Opera Software/Opera Stable and copy the Cache folder to a new location.

We open the properties of the shortcut with which we are used to launching the browser and in the “Object” field, to the line in it, separated by a space, add the parameter -disk-cache-dir=D:/Cache, where “D:/Cache” is the path to the copied or moved cache folder . Yes, so that the old folder does not take up more space, you can delete it. The same applies to examples with other browsers.

General note: Paths to the cache directory may vary between browser versions. This needs to be monitored. If in your case the path to the cache is incorrect, then you will have to look for it manually.

Good mood to you all! Friends, if you remember, I showed you how you can organize the transfer of temporary Windows files to a virtual disk. Thus, we significantly relieve the hard drive and speed up the operation of the entire system.

So now let's do it Chrome cache migration and Firefox on RAMDisk. These two Internet browsers are very popular, so this article will be useful to many users of the global web.

Well, let's get started. And first in line will be Google Chrome. First, we need to move the existing cache folders to a new storage location so as not to lose any data. To do this, right-click on the “Start” icon and select “Run”.

After this, you need to enter this special command.

  • %userprofile%\\ local settings\\ application data\\ google\\ chrome

In the next step, right-click on the Google Chrome shortcut on the desktop and select “Properties”.

Now you need to move the cursor to the end of the line “Object”, put one space, and then enter the following combination:

  • — user-data-dir="F:\\User Data"

Where F is the letter of the virtual disk. That is, it turns out that this is the path along which the folders we just transferred are located. That's all, brothers, the Chrome browser cache transfer was a success. But it is important to understand that this scheme will only work when you launch the program through a shortcut where a special parameter is specified.

Well, now let's move on to the no less popular Mozilla Firefox. Here, to move data to RAMDisk, you will need to do a little more steps, although everything is basically done by analogy. So, run the “Run” system utility again and enter the following command into its line.

  • %appdata%\Mozilla\Firefox\Profiles

After this, a folder with the extension will open . default, in which the profile parameters are stored. Again, we move it to a new location, that is, to a virtual disk in the computer’s RAM.

But this is not all the activities that need to be done using this utility. Now enter the following command like this.

  • %appdata%\Mozilla\Firefox\profiles.ini

A small file will open in which you should specify a new path for storing cache files (parameter « Path « ) and be sure to correct the value of the line « IsRelative « to zero. To avoid mistakes, look carefully at the screenshot below. Also don't forget to save your changes.

So, the system settings seem to be over. Now you need to tell the Mozilla browser itself where its current cache is stored. To do this, launch the program and enter the following parameter in the address bar.

  • about: config

Then right-click anywhere and select “New - line”. Next, in the setting name we write the following.

  • browser. cache. disk.parent_directory

And the value, in fact, will be the path to the virtual disk of the computer. With this all settings are completed, all that remains is to restart the browser and check whether transferring the Firefox cache to RAMDisk worked.

To conclude the article, I would also like to add that the settings that were applied to Chrome are suitable for the entire family of browsers on the engine without any problems Chromium, on which By the way, such popular developments as Yandex are based. Browser and Amigo.

And at this point the post comes to an end, if there are any unclear points, ask questions in the comments. Now, as always, let's watch another interesting video.

One day, about a year ago, I got a computer that I could take with me to the sofa - a laptop, that is. The laptop was chosen purely for work; one of the requirements when choosing was good performance. The Intel Core i3 processor seemed sufficient in terms of performance.

But, at first, the fast laptop began to irritate me more and more with its slowness. It’s not that it was stupid, froze, or the like - no, it just worked evenly slowly. This was especially noticeable if you worked on a “full-size” computer with a fast hard drive, and then switched to a laptop. The reason for this was the laptop's slow hard drive. Moreover, this is not a problem specifically for my laptop, it is a problem for all laptops, because they have slow hard drives with a rotation speed of 5400 rpm.

One day this got to me and I decided to buy an SSD. And the fastest one was chosen. After analyzing the occupied space on the C: drive and finances, it was decided to take a 64 GB SSD. And considering that with a small volume, the speed of most solid-state drives drops proportionally with decreasing capacity, the range of selected models quickly narrowed. The choice fell on Samsung 830.

The problem with the drive itself is unknown. Sometimes the problem unfolds after a while. In other cases, the system reboots. However, this is usually done to move the specified directories to a different partition on a different drive to improve performance. If there is a warning to be careful, read it and accept it. These steps did the trick for me. Hope this helps someone too.

All browsers are designed to record internet browsing history, cache files, and temporary files by default. And this will be a straightforward way to use to get back to where they last went when they close the browser window. Continue reading and you will find solutions. After the quick scan, the deep scan will automatically start searching for more files.

One day this got to me and I decided to buy an SSD. And the fastest one was chosen. After analyzing the occupied space on the C: drive and finances, it was decided to take a 64 GB SSD. And considering that with a small volume, the speed of most solid-state drives drops proportionally with decreasing capacity, the range of selected models quickly narrowed. The choice fell on Samsung 830.

Transfer to another hard drive

You'll be shown a warning that you must accept, and then you'll see a long list of preferences, sorted alphabetically. The three main types of preference variables are shown here: integer, boolean, and string variables. Before making any changes here, please review the information on the previous page and, importantly, read all important notes carefully before attempting to configure About: Configuration.

Editing the INI File

If set to 0, text queries are not case sensitive, if set to 1, they are case sensitive. Demoting will close the window faster if it is inactive. The default value is every 12 hours. The number of backups created is controlled by this setting; a value of 0 disables automatic bookmark backups, and a value of -1 removes the limit on the number of backups allowed, which is not recommended. The default value is 0, which means compression is disabled.

After almost a month of waiting, the newly purchased SSD was inserted into the adapter, and the adapter was already in the laptop. Of course, the adapter cover is not exactly like the original drive, it turned out not completely invisible, but quite tolerable.
The newfangled Windows 8 was installed on the brand new hard drive, everything flew and I was just fabulously glad that my laptop had found almost a second life. My joy knew no bounds until I launched programs to monitor the remaining life of the SSD. In particular, the SSD Ready program predicted the rest of the life of my SSD in six months. This was somehow not at all pleasing. I started reading and thinking about why this is so.

A value between 1 and 9 enables compression, with higher values ​​compressing data more but potentially resulting in slower browsing. This setting determines the maximum amount of space they can take up in the offline cache. It is best to enable them for faster site identification. If set to True, image placeholders will be displayed until the images on the page are fully loaded. Both options have a default value of 3, but you can increase or decrease this as desired.

It turned out that everything was simple - the main load on the hard drive was... Google Chrome! I would never have thought that a monster from a huge corporation would harm my hard drive so much.
Chrome is constantly writing something to the cache. Almost continuously. Here every 2 seconds
c:\Users\User\AppData\Local\Google\Chrome\User Data\Default\Cache\
There is also a folder where the cache of the online video you are watching is written. This folder is called Media Cache
And they also write icons, history and all that. In the end, I came to the conclusion that the User Data folder is simply constantly changing, writing and reading files and killing my SSD.

The default value is almost instantaneous, but it can be reduced to 0 to make it instantaneous, or increased to a higher value to delay its appearance or effectively disable it. By default this is a history of 3 recently closed windows, however you can change the value here to increase or decrease the number held. By default, the feature is enabled and automatically restores the last session after a failure. disable this feature by setting the value to 0 or you can set the number of crashes allowed before the automatic session recovery feature starts working.

Chrome is constantly writing something to the cache. Almost continuously. Here every 2 secondsc:\Users\User\AppData\Local\Google\Chrome\User Data\Default\Cache\ There is also a folder where the cache of the online video you are watching is written. This folder is called Media Cache. Icons, history and all that are also written. In the end, I came to the conclusion that the User Data folder is simply constantly changing, writing and reading files and killing my SSD.

For example, a value of 3 allows three crashes per row before the last session is automatically restored. A value of 0 displays only the close button on the active tab; 1 shows it on all open tabs; 2 results in no private buttons being displayed at all; and 3 displays one close button at the end of the tab bar. If set to True, which is the default, your tab bar will appear where the title bar used to be. The default value is 140, and the lower the value, the more likely it is that a close button will appear on the tab, but it may also copy some of the text in the tab title.

It was decided to disable this damned Chrome cache so that it would not write anything to the disk at all. Add the parameter “--disk-cache-size=1 --media-cache-size=1” to the Google Chrome launch shortcut. And lo and behold! The cache is not written, and the browser... does not fly and works quite poorly. It’s especially noticeable when you open Chrome with 30 open tabs, when it loads everything again. Well, we didn’t get rid of the records completely either - something like icons and history was still written to the disk.

The default value is 20 and can be raised or lowered, but will also be affected by the amount of visible space on your desktop. The default value is 12, but if you find that the value is excessive, you can lower the value here. The following page provides an alphabetical list of useful information about: Configuration Settings.

Adding an entry to add-ons

It is a popular music streaming service that is available as a free and premium service for most operating systems. The service uses a cache on the host system, which can fill up quite quickly depending on how much the service is used.

It was decided to disable this damned Chrome cache so that it would not write anything to the disk at all. Add the parameter “--disk-cache-size=1 --media-cache-size=1” to the Google Chrome launch shortcut. And lo and behold! The cache is not written, and the browser... does not fly and works quite poorly. It’s especially noticeable when you open Chrome with 30 open tabs, when it loads everything again. Well, we didn’t get rid of the records completely either - something like icons and history was still written to the disk.

The next option, in my humble opinion, solved all my problems. I decided to use RAM Drive - i.e. keep everything in RAM, and only write to the hard drive when turned off. Considering that my laptop is either turned on or in standby mode, it will very rarely be written when turned off. Of the programs I liked, I chose Qsoft RAMDisk. Installed as a driver. In the properties I selected the disk size, file system, where to write when shutting down. I allocated 512 MB for the disk (I think a reasonable minimum of 128 MB).

While this may not be an issue for most users, it may be for some since the service uses up to 10% of the free disk space of the main hard drive for caching. Because of this, it can grow. If you have 20 GB of free space, the cache may take up to 2 gigabytes, if you have 200 GB of free space, it may require up to 20 gigabytes, etc.

Note. If you use this feature, you may not want to clear it completely. To change the cache size, follow these steps: You have two options when it comes to cache size. You can set it dynamically to 10% of your free disk space or choose a fixed maximum size for it. To do this, go to the "use no more than" option and use the slider to set a fixed maximum cache size. This size can range from 1 to 100 gigabytes.

The next option, in my humble opinion, solved all my problems. I decided to use RAM Drive - i.e. keep everything in RAM, and only write to the hard drive when turned off. Considering that my laptop is either turned on or in standby mode, it will very rarely be written when turned off. Of the programs I liked, I chose Qsoft RAMDisk. Installed as a driver. In the properties I selected the disk size, file system, where to write when shutting down. I allocated 512 MB for the disk (I think a reasonable minimum of 128 MB).

Again, it was possible to specify --user-data-dir=“path to ram disk” in the shortcut parameters to redirect the profile storage, it could be registered in the registry, but if launched without a shortcut or updated, all this would not work. I started thinking about how to do it so that I could redirect it without changing anything. And then I remembered about symbolic links!

A 1 GB cache can store about 200 songs. If it runs out of space, the least played songs will be automatically removed and replaced with new tracks. You can use the same menu for this. This can be useful if you are running out of space on your main hard drive or partition. Just move the cache to another drive and you're all set.

Please note that the existing cache will be automatically moved to the new location so that you do not lose access to any offline tracks. Deleting cache to free up disk space is another thing you may want to consider, especially if you don't save songs for offline listening.

The Link Shell Extension utility was downloaded, with the help of which I actually created a “shortcut” in place of the User Data folder, a link that led to my RAM disk. Those. There was nothing on the disk, so when we went into the User Data folder we were immediately redirected to the ram disk. Moreover, what is the advantage of such a solution - neither the system nor Chrome saw any catch.

Chrome started working even faster than it did on the SSD. Very fast. Now I’ll probably even recommend to everyone to at least put the chrome cache on a small RAM disk. Personally, it’s a mystery to me why engineers don’t pay attention to the problem that chrome writes a lot and often. Reliability of information is good, but not at the cost of killing the hard drive!

Other ways to move your profile

You can find the location in your caching settings. Simply delete all files and folders inside the storage.

  • The Browse for Folder dialog box opens.
  • Select the folder containing the folder you copied.
Regardless of the methods used, you will need to find the folder containing your profile.

Create a new profile and copy it over it

Create a new profile and transfer old data

  • Create a new profile in the desired location.
  • This will create a default profile.
This method is only recommended for advanced users as it can be difficult to troubleshoot. They generally do not ignore bad entries, regardless of their position in the file. They explain that these devices, based on flash memory technology, are much faster, but also have a certain number of read cycles. Once these loops have been overcome, speed, performance and reliability are reduced with read and write errors.

As a result of the manipulations done, my chrome flies around and writes all its nasty things to the RAM. The SSD is happy and enjoys a long remaining life.

To speed up page loading, the Google Chrome browser caches their content: images, js scripts, css styles. All this accumulates on the hard drive and grows in size to hundreds of megabytes, if not more. Therefore, we have already considered and. You can't completely disable caching in Chrome; Google suggests using incognito mode instead.

You can use this page to send files to anyone. When the other person clicks on the link, the transfer will begin. Save the browser page until the file is transferred. New functionality makes this even easier. Once a user is in your contacts list, you can send them a notification by clicking on their name.

Other uses of this scheme

Create a folder on this disk Cache and right-click on it. In the context menu that opens, select Remember link source.

Then we go to the directory:
c:\Users\YOUR_USERNAME\AppData\Local\Google\Chrome\User Data\Default\

Since the AppData folder is usually hidden, you can open Start - Run and paste the following path for quick navigation:
%userprofile%\local settings\application data\google\chrome\user data\default\

Here, with the browser closed, delete the folder Cache, then right-click and select Place as - Symbolic link, thereby inserting a shortcut. Thus, Chrome will access the Cache folder in its usual path and not suspect that it is actually located in RAM. At the same time, it still needs to be done periodically, without allowing its volume to increase beyond the size of the virtual disk in RAM.

If desired, you can do the same not only for the cache folder, but for the entire folder User Data, which includes Cache. Thus, you can move all your user data that Chrome works with into RAM: history, cookies, extension data, etc.

If you, like most other people, spend a lot of time on the Internet, willy-nilly you have to learn some tricks, get around various tricks, that is, perform various actions aimed at optimizing your work on the network.

One such trick is moving the firefox cache. There may be a variety of prerequisites for this: for example, to optimize free space. In addition, the cache can be transferred to the hard drive to extend the life of the SSD. In general, there are quite a few reasons, and if you have a desire or need to transfer the cache in the Mozilla browser, I will tell you how.

How to transfer cache

To migrate the firefox cache, you need to do the following:

  • First, close your Mozilla web browser;
  • Now we need to get into control of the computer. To do this, go to the start menu, and then click on the “Run” line. An alternative option is to use the key combination +[R];
  • A window appears in which you need to enter “%appdata%\Mozilla\Firefox\Profiles” (without quotes), and then click ;
  • a directory with a name called [name].default has opened, which is actually your profile folder in this web browser. You need to copy it to where you would like it to be;
  • open computer management again (remember, with the +[R] combination), but now in the window that appears you need to enter “%appdata%\Mozilla\Firefox\profiles.ini” (without quotes), then – ;
  • after these steps “profiles.ini”, where you need to specify the path where you moved your cache. Externally, everything should look like in the screenshot below.

"Explanations" for the browser

Now you need to “notify” your computer that you have moved the cache to another location.