Caching on Android is a two-way mechanism: on the one hand, it speeds up loading applications and saves traffic, on the other hand, it can take up gigabytes of memory, slow down the system and even lead to crashes. If your smartphone starts to slow down, and in the โStorageโ section you see that the cache takes up 10+ GB, itโs time to act. But simply clearing it is not enough - you need disable autocachingto prevent the problem from returning.
In this article we will look at not only standard methods of clearing the cache through settings, but also hidden methods. completely disabling caching for individual applications and the system as a whole. You will learn how to work with ADB, change configuration files and even block the cache at the kernel level - without root access and the risk of bricking the device. Important: some methods require technical training, but we will give clear instructions for users of any level.
Why the cache on Android needs to be disabled, and not just cleared
Most guides on the Internet teach only clear the cache through the settings menu. But this is a temporary solution: in a day or two, applications will again fill the memory with unnecessary data. Reasons why you should disable caching completely:
- ๐ Constant lack of memory: even after clearing, the cache is quickly restored, eating up to 30% of the total storage.
- ๐ข System slowdown: fragmented cache slows down operation Android, especially on budget smartphones with
eMMCstorage drives. - ๐ Application crashes: damaged the cache can cause game crashes, errors loading media files and โwhite screensโ in social networks.
- ๐ก Extra traffic: some applications (for example, YouTube or TikTok) cache video in the background, consuming gigabytes of the mobile data.
Caching is only useful for frequently used applications (navigators, instant messengers). For everything else, it more often harms than helps. For example, the cache Google Play Services can take up to 500 MB, although it is cleared automatically once a month - but only if you do not disable this function manually.
โ ๏ธ Attention: Completely disabling caching for system applications (for examplecom.android.systemui) may lead to graphical artifacts or interface reboots. Before experiments, create a backup viaadb backupor TWRP.
Method 1: Disabling caching for individual applications through settings
The safest method is disable caching for specific apps. This will not delete data that has already accumulated, but will prevent further accumulation. The instructions are suitable for all versions Android from 8.0 Oreo to 15.
- Open
Settings โ Applications. - Select an application (for example, Chrome or Instagram).
- Go to
Storage โ Cache. - Click
Clear cache, then go back. - Tap on the three dots in the upper right corner and select
Limit background activity(on some firmware -Limit data usage). - Activate the option
Limit cachingorDo not save data in cache.
For Android 12+ a separate switch has been added Allow caching in the section Advanced โ Data. If you disable it, the application will not be able to save temporary files, but may begin to slow down when working with media (for example, Spotify will take longer to load tracks).
Back up important data|Check free space (minimum 1 GB required)|Close background applications|Connect charging (for long operations)-->
| Application | Max cache size | Is it possible? disable the cache without consequences |
|---|---|---|
| Google Chrome | up to 1 GB | Yes (page loading time will increase) |
| up to 500 MB | Yes (photos will take longer to load) | |
| YouTube | up to 2 GB | Partially (4K videos may lag) |
| Google Maps | up to 3 GB | No (maps will be loaded online) |
| Telegram | up to 5 GB | Yes (no media files will be saved) |
Method 2: Globally disabling caching via ADB (without root)
If you need totally disable caching for all applications, use ADB (Android Debug Bridge). enabled USB debuggingincluding Samsung, Xiaomi and Pixel.
Prepare the PC first:
- Download Platform Tools from Google.
- Connect your phone to the computer and enable debugging (a request will appear on the smartphone screen).
- Open the command line (
cmd) in the folder withadb.
Now run the commands one by one:
adb shellpm disable-user --user 0 com.android.providers.media.module
settings put global development_force_enable_app_cache false
settings put global disable_app_cache true
The first command disables the media provider (responsible for the media cache), the second and third ones globally disable caching. After a reboot (adb reboot), the changes will take effect. To return everything back, use:
settings put global disable_app_cache false
pm enable com.android.providers.media.module
โ ๏ธ Attention: On some firmware (for example, MIUI or ColorOS), these commands may be reset after updating the system. Check their operation once every 1-2 months.
If, after disabling the cache, applications begin to slow down, try manually adding exceptions for critical ones. apps (for example, a navigator) through the command pm grant APPLICATION_PACKAGE android.permission.WRITE_EXTERNAL_STORAGE
Method 3: Changing the build.prop configuration file (requires root)
For advanced users with root access there is a way to disable caching at the system level by editing the file build.prop. This will affect all applications, including system ones, so use the method only if you understand the risks.
Instructions:
- Install a file manager with root support (for example Root Explorer or Solid Explorer).
- Go to
/system/build.propand make a backup copy of the file. - Add the following lines to the end of the file:
dalvik.vm.dexopt-flags=m=ypersist.sys.disable_cached_data=true
ro.config.nocache=true - Save changes, set permissions
644(rw-r--r--). - Reboot the device.
These parameters:
- ๐ง
dalvik.vm.dexopt-flags=m=yโ disables caching DEX-files (speeds up the first loading of applications, but increases RAM consumption). - ๐ซ
persist.sys.disable_cached_data=trueโblocks saving temporary data. - ๐๏ธ
ro.config.nocache=trueโdisables caching at the kernel level.
After application, the system may run slower when applications are first launched, but the cache will stop accumulating.. To undo the changes, delete the added lines or restore the original build.prop.
What happens if you edit build.prop incorrectly?
Incorrect changes in this file can lead to a "bootloop" (cyclic reboot) or complete system inoperability. Always make a backup and check the syntax!
Method 4: Using Magisk modules for management. cache
If you have Magiskinstalled, you can use special modules for flexible caching management. For example, the module ยซDisable App Cacheยป allows:
- ๐ฑ Disable the cache for individual applications based on a white/black list.
- ๐ Automatically clear cache on reboot.
- ๐ก๏ธ Block background caching for selected packages.
Installation:
- Download the module from the repository Magisk (for example, here).
- Install via Magisk Manager (section
Modules โ Install from storage). - Reboot the device.
- Configure the rules in the file
/sdcard/DisableAppCache/config.json.
Example configuration for blocking cache Facebook and Twitter:
{"blacklist": [
"com.facebook.katana",
"com.twitter.android"
],
"autoclean": true,
"cleanonboot": true
}
The module is compatible with Android 10โ15 and most custom firmwares (LineageOS, Pixel Experience). To check functionality, use the command:
su -c "logcat | grep -i cache"
โ ๏ธ Attention: Some modules conflict with SafetyNet. banking applications, disable the module or use MagiskHide.
Method 5: Disabling the cache for web browsing (Chrome, Firefox, Edge)
Browsers are the main cache eaters. It can take up to Google Chrome it can take up to 1 GB, even if you rarely use it. To disable caching:
For Chrome:
- Open your browser and enter in the address bar:
chrome://flags. - Find flags:
#disable-disk-cacheโdisables the disk cache.#enable-network-service-cacheโblocks the network cache.
Disabled.For Firefox:
- Enter in address bar:
about:config. - Accept the warning.
- Find parameters:
browser.cache.disk.enableโfalsebrowser.cache.memory.enableโfalsebrowser.cache.offline.enableโfalse
For Samsung Internet:
- ๐ง Go to
Settings โ Personal data โ Delete data view. - ๐ Activate the option
Auto clear on exit. - ๐ซ In the section
AdvanceddisableSave data to speed up loading.
After disabling the cache, pages will load 10โ30% slower, but you will save up to 500 MB memory per month. To speed up, use Lite mode in your browser settings.
Disabling the cache in browsers is especially useful if you use the mobile data - this will reduce traffic consumption by 15-20%.
What to do if applications slow down after disabling the cache
Complete shutdown caching can lead to increasing loading time applications and media files. If you encounter lags, try:
- โก Add exceptions: allow caching only for critical applications (navigator, messenger).
- ๐ Use โsmartโ cleaning: set up automatic cache clearing once a week via Tasker or MacroDroid.
- ๐ฑ Increase RAM limit: in the developer settings (
Settings โ About phone โ Build number- tap 7 times) enableDo not save actionsand set the background process limit to2โ3. - ๐๏ธ Use a hybrid approach: disable the cache is only for โgluttonousโ applications (social networks, games), leaving it for system services.
If it slows down Android in general, check:
- ๐ Battery condition: a worn-out battery can cause slowdowns under high load on the processor.
- ๐ฅ Device temperature: overheating due to lack of cache (constant reloading of data) leads to throttling.
- ๐ ๏ธ Memory fragmentation: on devices with
eMMCexecute the commandfstrimviaADB:adb shell fstrim -v /data
As a last resort, return the caching settings to standard and use automatic tasks for regular cleaning (for example, via SD Maid or Files by Google).
FAQ: Frequently asked questions about disabling the cache on Android
Is it possible to disable the cache without root access?
Yes, but with limitations Through ADB (method 2) you will disable caching globally, but some system applications may ignore these settings. For complete control you need root or Magisk.
Why does it appear again after a day after clearing the cache?
Android automatically restores the cache for frequently used applications. To avoid this, you need not only. clear, but also disable autocaching (see Method 1 or 2). Also check the synchronization settings in Google Account - sometimes the cache is restored from the cloud.
Is it safe to edit build.prop?
Yes, if you know what you are doing. Always make a backup of the original file! Syntax errors or incompatible parameters can lead to bootloopTo restore, use TWRP or fastboot.
How to disable cache for games (Genshin Impact, PUBG, Call of Duty)?
For games, the cache is critical - without it there will be lags when loading textures. Instead of disabling:
- Limit the cache size in the game settings (usually there is an option
Clear cacheorStorage management). - Use Magisk module to transfer the cache to an SD card.
- Set up automatic cleaning after Tasker after exiting the game.
Why do some sites not open after disabling the cache?
Some sites (for example, banking or government) require caching to work with TLS 1.3 or Service Workers. In this case:
- Add the site to browser exceptions.
- Use Firefox Focus โit does not cache data.
- Temporarily enable the cache in your browser settings.