Xiaomi routers are some of the most popular home networking devices because of their combination of price, functionality and stability. However, over time, even they start to slow down: Internet speeds drop, connections break, and the web interface opens with a delay. 80% of the time, the fault is a crowded memory cache โ temporary files that the router accumulates to speed up work, but not always cleans correctly.
Unlike smartphones where the cache can be cleaned in a couple of clicks, with Xiaomi Mi Routers (including the 4A Gigabit, 4C, 5, 6 and AX3000 models), the situation is more complicated. The manufacturer does not put this feature in a prominent place, and in some firmware it is even hidden. This article will help you understand how to clean the cache correctly without risking resetting, what tools to use and what to do if standard methods do not work.
Why the router cache needs to be cleaned regularly
The router cache is a temporary memory where:
- ๐ Connection Logs โ History of devices that have connected to the network (even if they are already disabled).
- ๐ DNS-records โ cached addresses of sites to speed up their opening.
- โ๏ธ Settings QOS โ Priorities for traffic for different devices.
- ๐ ARP-tables - comparison IP- and MAC-local-network addresses.
When the cache is overflowing, the router starts to work incorrectly:
- ๐ข Slows down speed โ especially noticeable when downloading torrents or streaming videos.
- ๐ Spontaneous communication breaks โ devices are disconnected from Wi-Fi for no apparent reason.
- ๐ Some websites are not opened because of outdated ones. DNS-record.
- ๐ Web interface hangings - page 192.168.31.1 load 10-20 seconds.
The manufacturer recommends clearing the cache at least once every 3-6 months, but if you have a lot of connected devices (10+) or are actively using guest Wi-Fi, you will have to do this more often. It is important to understand that cleaning the cache does not remove your basic settings (wi-fi password, network name, tied devices), but resets temporary data that may conflict with each other.
Method 1: Clearing the cache via the web interface (for all models)
The most versatile method that works on most Xiaomi routers, including Mi Router 4A, 4C, AC2100 and AX6000.
Step-by-step:
- Connect to the router network (via Wi-Fi or cable).
- Open your browser and type in the address bar 192.168.31.1 (or miwifi.com).
- Enter the login and password (by default โ admin and password from the sticker on the router).
- Go to the section Additional settings โ System โ Journals.
- Click the Clean magazine button (on some firmware โ Reset cache).
- Confirm the action and wait for the router to restart (it will take 1-2 minutes).
If your router does not have a โLogsโ option, try an alternative route:
Additional settings โ Network settings โ Local Network โ DHCPHere, click Clear. ARP-table โ this will delete the cached data about the connected devices.
โ๏ธ Preparation for cache cleanup
โ ๏ธ Attention: On routers with MiWiFi firmware ROM (Chinese version of the cache cleaning point may be called (qฤซngchรบ huวncรบn). If the interface is in Chinese, use a translator or update your firmware to the global version.
Method 2: Reset cache via Mi Home (Mi WiFi)
If you have an official Mi Home app (or Mi WiFi for routers), you can clear the cache directly from your smartphone, which is convenient when you donโt have access to your computer or the router is physically in an uncomfortable place.
How to do this:
- Open the Mi Home app and select your router from the device list.
- Go to Settings โ Additional โ System Tools.
- Slip on Clear Cache (or Clear Cache in English).
- Confirm the action and wait for the reboot notification.
If there is no โClean Cacheโ item, try:
- ๐ Update the Mi Home app to the latest version (Google Play or App Store).
- ๐ฑ Reconnect the router in the application (go to the device settings) โ... โ Remove, then add again).
- ๐ Change the region in the Mi Home profile to China (sometimes this opens up additional features).
On the Xiaomi AIoT Router AX3600 and AX6000 routers, the cache is cleared automatically when you update your firmware through Mi Home. If you havenโt updated your software in a long time, do it โ it will solve the cache problem and add new features.
๐ก
If the speed hasn't increased after cleaning the cache, check the Wi-Fi channel in the router settings. Auto Select (Auto) often selects an overloaded channel. It's recommended to manually set the 1, 6 or 11 channel for the 2.4 GHz band.
Method 3: Complete router reset (if the cache is not cleared)
If standard methods don't work, and the router keeps on slogging, you'll have to do a hard reset, a factory reset, and that will delete all the data, including:
- ๐ Wi-Fi password and network name (SSID).
- ๐ฑ List of connected devices (you will have to reconnect).
- โ๏ธ Port settings, DMZ, parental control.
How to reset the Xiaomi router:
- Take a paperclip or toothpick, press and hold the 10-15 second button until the indicators start flashing.
| Model router | Reset retention time | Sign of successful discharge |
|---|---|---|
| Mi Router 4A | 10 seconds. | All the indicators are flashing orange. |
| Mi Router 4C | 12 seconds | The power indicator flashes red |
| Mi Router AX1800 | 15 seconds. | The indicators go out, then light up in blue. |
| Mi Router 5 | 8 seconds | Sound signal + flashing yellow |
โ ๏ธ Note: On Xiaomi routers with dual firmware (for example, Mi Router) 3G) Long Reset retention (more than 20 seconds) can cause you to switch to backup firmware. If the router does not turn on after reset, repeat the procedure by holding the 5-second button - this will return the main firmware.
Method 4: Clearing the cache via SSH (for advanced users)
If you are familiar with the command line, you can clear the cache of the Xiaomi router through SSH-This method works on most models with firmware based on OpenWRT or Padavan.
What you need:
- ๐ฅ๏ธ Computer with Windows, macOS or Linux.
- ๐ Programme for SSH-Connections: PuTTY (Windows) or Terminal (macOS/Linux).
- ๐ Login and password for SSH (Default: root / password from the sticker).
Step-by-step:
- Connect to the router via SSH by entering the command: ssh root@192.168.31.1 (replace IP if you have another one).
- Enter your password (the characters are not displayed when you enter).
- Follow the commands in turn: echo 3 > /proc/sys/vm/drop_caches # Cleaning up the rm memory cache -f /tmp/dhcp.leases # Cleanup DHCP-Killall dnsmasq #Reboot DNS-server
- Reboot the router with the command: reboot
For cleaning. DNS-cache additionally perform:
rm -f /var/run/dnsmasq.leases
/etc/init.d/dnsmasq restartWhat if the SSH is disabled?
Method 5: Automatically clean the cache on schedule
To avoid manually clearing the cache, you can set up automatic cleaning with built-in tools or third-party scripts, which is especially useful for routers running 24/7 (for example, in offices or smart homes).
Option 1: Through the web interface (for firmware with cron support)
- Go to the additional settings โ System โ Scheduled tasks.
- Add a new task with the team: 0 3 * echo 3 > /proc/sys/vm/drop_caches (This will clear the cache every day in 3:00).
- Save and restart the router.
Option 2: Script for Padavan/OpenWRT
If your router runs on custom firmware, create a file /etc/cron.daily/clear_cache contents:
#!/bin/sh
logger"Clearing cache..."
sync
echo 3 > /proc/sys/vm/drop_caches
rm -f /tmp/dhcp.leases
/etc/init.d/dnsmasq restartThen make it an executable:
chmod +x /etc/cron.daily/clear_cacheThis will clear the cache every day at the same time. For weekly cleaning, place the script in the /etc/cron.weekly/ folder.
๐ก
Automatic cache cleaning reduces the load on the router processor and increases its life. However, do not install cleaning more than 1 time per day - this can lead to the opposite effect and slowdown.
Frequent Mistakes and How to Avoid Them
When cleaning the cache of the Xiaomi router, users often face typical problems.
| Problem. | Reason. | Decision |
|---|---|---|
| After cleaning the cache, the Internet disappeared | Dropped. DNS-setting | Go to the Internet โ DNS and manually specify 8.8.8.8 and 8.8.4.4 (Google DNS) |
| The router does not restart after cleaning | It's stalled. | Turn off the power for 30 seconds, then turn it on again. |
| There is no โClear Cacheโ button in the web interface | Outdated firmware | Update the software through the System โ Update |
| After reset, devices do not connect | Wi-Fi settings are down. | Log in to the wireless network and set up the SSID/password again |
Another common mistake is the confusion between cleaning the cache and resetting the settings.Remember:
- โ Cache Clearing โ Deletes temporary files without affecting the basic settings.
- โ Reset โ returns the router to factory settings, erasing everything.
If you're not sure which method to use, start with the safest one - cleaning through the web interface or Mi Home. Only if that doesn't help, go to reset or SSH.