# Clearing the cache in WordPress

> Clear your WordPress cache from caching plugins, LiteSpeed Cache and your browser so visitors see your latest changes.

Source: https://helpcenter.ruachost.com/wordpress/guides/clearing-the-cache-in-wordpress/

WordPress itself does not include a built‑in caching mechanism, but many site owners use caching plugins or server‑level caching to improve performance. Sometimes cached content prevents recent changes from appearing immediately. On **ruachost.com**, you may need to clear the cache to ensure visitors see the latest version of your site.

## Why Clear the Cache?

- Updates to themes, plugins, or content may not appear right away.
- Cached pages may display outdated information.
- Clearing cache forces WordPress to regenerate fresh content.

## Step‑by‑Step Instructions

### 1. Clear Browser Cache

Before clearing WordPress cache, ensure your browser isn’t storing outdated content.

- In Chrome/Edge: **Settings → Privacy → Clear browsing data → Cached images/files**.
- Reload your site after clearing.

### 2. Clear Plugin Cache

If you use a caching plugin (e.g., **W3 Total Cache**, **LiteSpeed Cache**, **WP Rocket**):

- Log in to WordPress as administrator.
- In the dashboard, go to the plugin’s settings.
- Look for **Clear Cache**, **Empty All Caches**, or **Purge Cache**.
- Click the option to clear cached files.

### Example (W3 Total Cache)

- Go to **Performance → Dashboard**.
- Click **Empty All Caches**.

### 3. Clear Server‑Level Cache

On **ruachost.com**, some hosting plans include server‑side caching (e.g., LiteSpeed).

- Log in to cPanel.
- Locate the LiteSpeed or caching option.
- Click **Purge All** to clear server cache.

### 4. Clear CDN Cache (Optional)

If you use a Content Delivery Network (CDN) like Cloudflare:

- Log in to your CDN dashboard.
- Navigate to **Caching → Purge Cache**.
- Select **Purge Everything** to clear cached content globally.

## Notes

- Clearing cache may temporarily slow site performance until new cache is rebuilt.
- If you use multiple caching layers (plugin + server + CDN), clear all of them.
- For command‑line users, you can clear cache using **WP‑CLI**:

  ```bash
  wp cache flush
  ```
