Skip to content

Clear the SiteGround Cache

For sites hosted on SiteGround. SiteGround keeps a ready-made copy of each page so the site loads fast. That’s the Dynamic Cache. After you change something, visitors (and you) can keep seeing the old version until the cache is cleared. This page shows how to clear it, and what else to check if a change still doesn’t show.

  • After pushing staging to the live site (Full or Custom Deploy).
  • After CSS or theme changes (style.css, Pegasus Options, child theme edits).
  • When an edit you saved isn’t showing on the live site.
  • After changing menus, widgets, or footer content that appears on every page.
  1. Log in to SiteGround and open Site Tools for your website.
  2. Go to Speed → Caching.
  3. Open the Dynamic Cache tab.
  4. Find your domain in the list and click the Flush Cache icon under Actions.

The Dynamic Cache is flushed per website, so only that website is affected. Staging copies have their own addresses, so they show up separately.

(How to Flush Your Site Caches, Dynamic Cache tutorial)

The same Speed → Caching page has a Memcached tab. Memcached caches database queries, not your pages or CSS, and SiteGround notes it can only be flushed for all sites on the account at once (Flush Cache icon under Actions). You usually don’t need it for content or style changes.

Or: purge from WordPress (Speed Optimizer plugin)

Section titled “Or: purge from WordPress (Speed Optimizer plugin)”

If SiteGround’s Speed Optimizer plugin is installed, you can also purge the cache from the WordPress dashboard:

  • Click Purge SG Cache in the black admin bar at the top of any page while logged in, or
  • Go to Speed Optimizer → Caching and click Purge Cache under Manual Cache Purge.

SiteGround also recommends leaving Automatic Purge on. It clears the right parts of the cache when content changes, and does a full flush on plugin, theme, and WordPress updates. (Caching in Speed Optimizer)

Still seeing the old styles? It’s probably your browser

Section titled “Still seeing the old styles? It’s probably your browser”

Flushing the Dynamic Cache makes SiteGround’s server send freshly built pages. It doesn’t reach into visitors’ browsers. Browsers keep their own saved copies of files like style.css, images, and scripts, and can keep using them until those copies expire. So after a CSS change you might see the new page content but old styling.

What to do:

  1. Hard refresh the page: Ctrl + Shift + R (Windows/Linux) or Cmd + Shift + R (Mac).
  2. Or open the page in a private/incognito window, which doesn’t use your saved copies.
  3. If it still looks old for you and colleagues after a hard refresh, tell us.

You can’t hard-refresh other people’s browsers. The reliable way to make all visitors download a new style.css is to change the file’s address, usually the version number WordPress adds to the end (for example style.css?ver=…). When the version changes, browsers treat it as a new file and download it.

  • In the public Pegasus and Pegasus Child theme code, style.css is loaded without its own version number, so WordPress adds its own version and the address only changes when WordPress itself is updated. Your developer can bump the version in the child theme after CSS changes.
  • Speed Optimizer has a setting called Remove Query Strings From Static Resources. SiteGround says removing them won’t stop changed files from loading again, but if styles stick after a change, mention to us whether this setting is on.

That means CSS changes should go through your developer (or the child theme), so the version can be bumped when needed.

SiteGround’s CDN has its own Cache Purge button (Site Tools → Speed → CDN). It only works when the domain uses SiteGround’s nameservers. If your domain’s nameservers are somewhere else (GoDaddy, Cloudflare, etc.), the SiteGround CDN won’t be active (SiteGround CDN docs). If your site does use the SiteGround CDN, add CDN → Cache Purge to this checklist.

  • Speed → Caching → Dynamic Cache → Flush Cache for your site (or Purge SG Cache in WordPress)
  • Hard refresh (Ctrl/Cmd + Shift + R) or check in a private window
  • Check on your phone too (a different browser cache)
  • Still old for everyone? Tell us (the stylesheet version may need bumping)