Understanding Page Caching #
After you make a change to your site, try visiting the page in another browser, on your phone, or in an incognito window.
You might not see the changes you made represented on the live site right away.
This is because your website uses caching. Caching is like a snapshot of your website. The cached version of your page can load very quickly with minimal or no impact on your web server. This is what allows your website to handle huge amounts of traffic, but if you make a change to your site, the cache needs be refreshed. Ideally, this happens automatically, but that is not always the case.
Note that caching only applies to users who are not logged in, as soon as a user logs in, caching is disabled. This is why the site looks updated to you when you’re editing as an admin, but when you load the same page on your phone or in a private window, you see the old version.
Clearing your Website’s object & page cache. #
1. First, we’ll clear the object cache. Click “Settings” then “Redis”
2. Click “Flush Cache”
3. Next, we’ll clear the page cache. Click “Settings” then “Cloudflare”
4. Click “Purge Cache”
5. Click “Purge Everything”
6. Confirm you want to purge all by clicking “Purge Everything”
Expectation after clearing the cache. #
The next time you visit your website, you should see the changes you made on the live site. You’ll also notice the page load just a bit slower than usual. This is because the page is not cached until the first visitor comes to the page. Subsequent visits should load noticeably faster.