---
title: How to clear local cache
description: "This article explains how to clear the local DNS cache. It can be useful if you've made changes to a site but can't see them on your computer. **Clearing cache on Windows computers** 1. Press ***Windows key* + *X*** 2.…"
url: "https://www.host-age.com/kb/advanced/how-clear-local-cache/"
updated: "2025-07-31"
category: Advanced
---

# How to clear local cache

This article explains how to clear the local DNS cache. It can be useful if you've made changes to a site but can't see them on your computer.

**Clearing cache on Windows computers**

1. Press ***Windows key* + *X***
2. Select “**Run**” and in the new window type ***cmd*** then press **Enter**
3. At the command prompt (CMD) enter the following command: **ipconfig /flushdns** and press **Enter**
4. That’s it. Your computer’s cache has now been cleared

**Clearing cache on Mac OS computers**

1. Go to **Applications**, then **Utilities** and open the **Terminal** app
2. Enter the following command depending on your Mac OS version:
   - From El Capitan to Mojave: **sudo killall -HUP mDNSResponder**
   - Big Sur: **sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder**
3. After entering the command press **Enter**. You may be asked for your Mac password, enter it
4. That’s it. Your computer’s cache has now been cleared

**Clearing cache on Linux computers**

1. In the terminal, enter the command: **sudo systemd-resolve --flush-caches**
2. Then you can check cache statistics using this command: **sudo systemd-resolve --statistics**
3. The last command will display cache statistics in a table; under **Current Cache Size** you should see 0
