How to disable the caching of pictures on Twitter for Mac and free up disk space
Tips Makradar / / December 19, 2019
The official Twitter client for Mac has a characteristic feature (bug?), Which causes an increase in the application cache to epic proportions. That is, the folder with the image cache will grow indefinitely without any restrictions on size and, as a result, can "swell" to several gigabytes, and you do not even know. Another bad point is that all of these files are also stored in virtual memory, causing unnecessary use of RAM and paging file.
I'll show you how to manually clear the cache of images and doing it from time to time, you will be able to avoid filling the disk, because the automatic Twitter does not. Also, if you get tired of manually delete the cache, you can disable the application to store it. This too will be discussed in this article.
These problems exist only in the official Twitter application for Mac, so if you use other clients, they do not concern you. Surely this Twitter application error, but whether it will be fixed and when, is still unknown.
Location image cache folder
Twitter user profiles caches images and pictures of the tweets, folding them like this daddy (note that the Library folder is the user, not the system):
~ / Library / Containers / com.twitter.twitter-mac / Data / Library / Caches / com.atebits.tweetie.profile-images /
The easiest way to reach it is to use the keyboard shortcut ⇧⌘G call for dialogue Go to Folder in the Finder and copy the above path. To delete all files from this folder (not the folder itself) will solve the problem. Just do not forget to complete this Twitter application to upload cache memory.
If you are an active user of Twitter, then this folder will be hundreds and even thousands of small files, which generally take up quite a sizeable disk space. And if you have enabled auto-update tapes when new tweets, the cache folder is filled with more and you may be more convenient to create an alias for it to move quickly to it and delete the files when it is needed. Or you can follow the following tips and prevent the creation of the image cache in general.
Preventing save images cache to Twitter
Tired of constantly remove cached files manually? Me too. There is a way that can help us in this. All you need to do - is to lock the folder cache, thus preventing saving of files in it. Theoretically this can increase the load on your Internet channel, because each file, after repeated appeals to it, must be downloaded from the server again. Nowadays, fast and unlimited internet is unlikely to bother anyone, but if you are using as the connection is limited mobile Internet, distributing it through tethering to the iPhone or something in that spirit, then you may want to think before disconnecting cache. If you are sure you want to lock the folder and stop caching the images, then that's what we need to do:
- Open the Finder, press the keyboard shortcut ⇧⌘G and go to the following path:
~ / Library / Containers / com.twitter.twitter-mac / Data / Library / Caches /
- select a folder com.atebits.tweetie.profile-images and press the shortcut ⌘ITo call information panel on this folder.
- Now you need to put a tick against the item Protection, in section Are common.
- Then you need to complete the Twitter and wait 1-2 minutes for the cache has been unloaded from memory.
You can check the tape and flipped revealing tweets - even at very saturated stream, the folder in which the previously stored cache is empty.
More experienced users can go ahead and apply the solution to create a symbolic link like Folders /com.atebits.tweetie.profile-images/ straight to the shopping cart (~ / .Trash) Or even /dev/null/But a simple lock folder in the Finder will be enough - the application is not able to cache the images into it.
As far as I can tell, in a folder com.atebits.tweetie.profile-images not stored anything important and removal of its contents would not affect the work on Twitter or something else. It is possible that maintaining a cache of such huge dimensions allow the application to open soon old tweets scrolling tape - but that's no excuse for me to hold a number of seats on the ROM.
If you are using a MacBook with a 128GB drive (not to mention the old MacBook Air 64 GB), even several gigabytes to be relevant to you. To understand some of the figures in question, I will say that I cleaned the cache images about once a week (or so) and it time is always recruited 1-4 gigabytes, depending on the number of tweets and how often people attached to them a photo. In the end, I decided to lock the folder with the cache and so far I have not had any problems with the application.
(via)