Have you ever published a post or made a CSS update and then gone to the homepage and it not be there?
How about signed in and then gone to the homepage to find that you’re no longer signed in, but when you go to another post on the site you’re suddenly signed in again?
Chances are good that the culprit is cache. In this article we’ll take a look at how to clear your WordPress cache.
Cache makes a website faster.
In our world of fast-loading websites we all know the benefits of using cache to reduce server load for our scripts and images.
Unfortunately this can sometimes cause issues such as not showing your latest updates.
In order to see the updates you’ll need to clear the cache.
Let’s look at the various types of cache and see a few examples of clearing each one.
What is Cache?
In the World Wide Web, cache is a location, or locations, where web pages or other elements are stored in memory so they can be retrieved quickly.
Here’s a simplified description in layman’s terms (in reality the web is more complicated than this, but the point’s the same).
Web servers and browsers use HTML instructions to build pages one at a time from components that are stored in different locations.
Without cache these pages will have to be built every time the server is asked for the page.
Cache stores that page in memory so it can be used over and over again.
For a WordPress website there are three types of cache:
Browser – a place on your computer or device where your browser stores the information about a website that doesn’t change often.
Rather than downloading the same information every time you visit the website, the browser pulls the information from its memory.
The web page loads faster and the network uses less data.
Cache Plugin – a plugin designed specifically to deliver premade web pages, speeding up the time it takes to recreate the page from HTML instructions.
Server Cache – using their own cache plugins or scripts your host might store premade web pages in memory to deliver to your visitors, reducing the load on the server.