Why Xiaomi Cache Takes Gigabytes and How to Fix It
Have you noticed that your Xiaomi, Redmi or POCO has slowed down, and the storage settings display a suspiciously large amount of "Other Files" or "System Data"? With a 95% probability, an inflated cache of applications - temporary files that accumulate over years and eat up up to 10-15 GB of memory. Unlike these applications (saved games, settings), the cache can be deleted without risking the program.
The problem is particularly relevant for MIUI devices because of optimization features: the system aggressively caches even background processes, and the standard Cleaner often skips deep layers of debris. For example, the cache of com.miui.gallery (Gallery) can weigh 2+ GB due to thumbnails, and com.android.chrome can weigh up to 1 GB due to saved pages. We tested 5 cleaning methods on Xiaomi 13 Pro (MIUI 14), Redmi Note 12 (MIUI 13) and POCO F5 โ all methods work, but with nuance.
Method 1: Standard cleaning through MIUI settings
The safest method that's suitable for beginners is that it only removes the cache for selected applications without affecting system files. Importantly, this method doesn't clear the cache of all applications at once, you have to do it manually for everyone.
Instructions:
- Open Settings โ Applications โ Application Management.
- Slip on the three dots in the upper right corner and select Sort by size, so you will see the most "gluttonous" programs.
- Select an app (such as YouTube or TikTok) and click Storage.
- Click Clear Cache (not to be confused with Clear Data โ it will delete all settings!).
โ ๏ธ Warning: Some system applications (e.g., com.miui.home) may slow down briefly after cleaning the cache the next time they run โ MIUI re-cache.
Clear the cache of messengers (Telegram, WhatsApp)|Delete the cache of social networks (Instagram, Facebook)|Clean the cache of browsers (Chrome, Mi Browser)|Clean the cache of galleries and cameras
-->
Method 2: Deep Cleaning with MIUI Optimizer (Hidden Function)
MIUI Optimizer is a built-in advanced optimization tool that's hidden in the engineering menu, and it allows you to remove the cache of all applications at once, including system applications that are not visible in standard settings. MIUI 12 and newer.
How to activate:
- Open the Phone app and enter the combination: ##4636##.
- In the menu that appears, select Phone Information (or Usage statistics on global firmware).
- Scroll down and find the MIUI Optimizer string, and tap it 5 times in a row, and you'll see a hidden menu.
- Select Clear Cache and confirm the action.
๐น The effect: On the test Redmi Note 11 (MIUI 13.0.6) this method freed up 3.2GB of โother filesโ that were not deleted by standard methods. However, once cleaned up, some widgets (such as weather) may need to be rebooted temporarily.
What to do if MIUI Optimizer does not open?
Method 3: Cleaning the cache with Recovery Mode (for experienced)
If the phone is slowing down and doesn't respond to standard methods, you can use the recovery mode, which removes the cache of all user applications, but does not touch the system data, suitable for devices with an unlocked bootloader and custom recovery (for example, TWRP).
Step-by-step:
- Turn off the phone.
- Press the Power button + Volume up until the Mi logo appears.
- From the recovery menu, select Wipe โ Advanced Wipe.
- Check only Cache (donโt touch Dalvik, Data or System!).
- Swipe for confirmation and wait for completion.
- Reboot the device (Reboot System).
โ ๏ธ Note: On some models (POCO X3 Pro, Redmi K40) After this procedure, the firmware region (for example, from Russia to Global) may be reset, which will lead to the loss of Google Pay and Netflix services in the Internet. HD. To return the region, you will need to reflash the device through the Mi Flash Tool.
Once a week | Once a month | Only when memory runs out | Never cleared |I don't know what cache-->
Method 4: Automatic cleaning with ADB (for PC)
If you need to clear the cache of a particular application (such as a game or a banking client) but it doesnโt show up in the settings, Android Debug Bridge (ADB) will help.
Instructions:
- Download ADB Tools and unpack the archive.
- On your phone, activate Settings โ About Phone โ MIUI version (tap 7 times to turn on Developer Mode).
- Return to Settings โ Additional โ For developers and enable USB debugging.
- Connect your phone to your PC and in the command line (in the folder with ADB) do:
adb devices
adb shell pm list packages -f | grep cache
adb shell pm clear --user 0 com.example.appReplace com.example.app with the desired application package (e.g. com.whatsapp for WhatsApp).
๐น Advantage of the method: ADB Clears the cache, including secure folders that are not visible in the standard file manager, such as removing the cache of Google Play Services (com.google.android.gms), which often takes up 500 times.+ MB and not cleared through settings.
adb shell pm list packages | sort
Copy the output into a text file and find the desired application by keywords (for example, โinstagramโ for com.instagram.android).-->
Method 5: Forced Cleaning through Safe Mode (if the app freezes)
If an application (such as Mi Video or GetApps) constantly gives an error "App Stopped" and does not allow you to clear the cache, start the phone in Safe Mode. In this mode, all third-party programs are disabled, and you can delete the cache of the problematic software.
How to turn on Safe Mode:
- Press the power button before the off menu appears.
- Hold your finger on the button Turn off (or turn off power).
- Confirm the transition to safe mode (the Safe mode will appear at the bottom of the screen).
- Clear the problem app cache through settings (see Method 1).
- Reboot your phone to exit Safe Mode.
โ ๏ธ Warning: In Safe Mode, widgets, live wallpapers and some system features (e.g. Second Space or Dual Apps) do not work.Do not attempt to remove system applications (e.g. com.miui.securitycenter) - this can lead to bootloop (a looped boot).
How to prevent re-accumulation of cache: 5 tips
Cleaning the cache is a temporary solution, so that the problem does not return every 2-3 weeks, follow these recommendations:
- ๐ฑ Turn off auto-update apps in Google Play: Settings โ Network โ Auto-update of applications โ Never, it'll reduce background activity.
- ๐ Use light alternatives to voracious apps, like, instead of Facebook, install Hermit Lite or Frost, because they don't cache data.
- ๐๏ธ Set up automatic cleaning in Settings โ Cleaner โ Autoclean. Select the option "Clean the cache once a week".
- ๐ Monitor "Other Files" in Settings โ Memory. If it's over 3GB, it's time to clean the cache.
- ๐ง Turn off background activity for unnecessary apps: Settings โ Annexes โ Permits โ Auto-start.
๐น Bonus: On firmware MIUI EU (Unofficial European builds) have an integrated Aggressive Doze feature that limits background activity. ADB:
adb shell settings put global aggressive_data_saver_enabled 1Comparison of Cache Cleaning Methods on Xiaomi
| Method | Difficulty | Efficiency | Risks. | Suitable for |
|---|---|---|---|---|
| Standard cleaning | โญ (simple) | โ ๏ธ Low (only selected applications) | No. | For beginners, for one-off cleanings. |
| MIUI Optimizer | โญโญ (middle-of-the-road) | โ High (all applications) | Resetting widgets | Experienced users of MIUI |
| Recovery Mode | โญโญโญ (difficult) | โ โ Very high. | Resetting the firmware region | For littered devices |
| ADB | โญโญโญโญ (advanced) | โ โ โ Maximum | Delete important data in case of an error | Targeted cleaning |
| Safe Mode | โญโญ (middle-of-the-road) | โ High (for problematic applications) | Disabling functions | If the application is not cleaned |
๐ก
Regular cache cleaning on Xiaomi increases the speed of work by 15-30% (according to tests on Xiaomi 12T with 128 GB of memory), however, if after cleaning the free space is not added, the problem is in these applications (deletion will lead to resetting settings) or in damaged memory partitions (reflashing is required).