Okay I am fairly new to WordPress. I am also computer dumb when it comes to tech talk. On my “Posts” page in my dashboard, it has “Purge from cache”. What exactly is this and what does it mean? If I happen to accidentally click on it, will it delete the whole post or my blog? No laughing!
Confused in WP world
It sounds like you’re using a caching plugin. So before I talk about “Purge Cache”, I’ll talk a bit about what a caching plugin even does.
How do caching plugins work?
If you’re using one, it’s probably because you’ve heard people say, “You need a caching plugin because it will make your site load faster!” But have you ever wondered why that’s the case?
WordPress sites are dynamic. That means they use a database, have complicated PHP scripts, and they’re always changing. All of your posts, comments, and other information are stored in this database. And every time you load the page, your blog has to figure out what page (or post) you’re trying to view, then pull that content out of the database to display it for you. It does that on every single page load. That’s a lot of work!
What a caching plugin does (usually) is generate static, HTML copies of your pages. So when the page gets viewed, it saves a copy of that page in a static form, the it displays that static HTML copy to your users. That way it doesn’t have to check the database every single time. It saves time and resources when loading pages. This can be why sometimes you make a change to one of your posts and you don’t see the changes instantly; it means you’re still viewing the old “copy” instead of a live version that gets retrieved from the database on the fly.
Still confused? Let’s use a metaphor! WOOHOO!
Say there’s an author of a book. That author has a finished, complete copy of the book. Now let’s say someone has decided to read that book in ebook format. In our metaphorical example, every time the reader turns the page, the author has to look up that page of the book and send the page contents to the reader. Manually. And they have to do that every single time for every single reader. They’re constantly flipping pages to send the content to the reader.
Wow, that sucks. So let’s introduce caching:
The author is fed up so they decide that instead of manually sending the page content, they’re just going to create a ton of copies and send each reader one of those copies. Now the author doesn’t have to do any work, because each reader has his or her own copy and they can view that static content. But that means if the author makes any changes to the book, the readers may not get them right away because they’re reading copies of the original.
What does “purge cache” do?
So now let’s talk about purging the cache. That simply means to delete the HTML “copies” of your pages. So if you purge the cache, it means the next time you view your blog, it will generate the page by pulling info from the database (the original method). Then, it will recopy the page again to create a new, static HTML copy.
So let’s go back to our metaphor. Say the author fixes a few typos in the book. Since the readers have their copies, they aren’t going to get the updates (at least not immediately). So to speed the process along, the author purges the cache. That means the author deletes all the copies that the readers had before, and then sends them new copies that have the corrections!
Purging the cache will not delete your blog!
Most caching plugins are set up to purge the cache after a certain amount of time (like once a day or once every few hours, or may even once a week). But if you make an edit to one of your posts and find that you can’t see the changes immediately but want them to be available, that would be a good reason to manually purge the cache.
Recommended caching plugins
Want a caching plugin? See below for a few recommendations! But keep in mind that a few hosts do not allow their users to use caching plugins. Because while a caching plugin will make your blog load more quickly, it also uses more server resources, and some web hosts don’t like that! So be sure to check your web host’s terms of use before installing one.
Forgive my naΓ―vetΓ©. Does this mean that every person would need to be clearing their caches as well, to get the most updated content? Or does clearing the cache on my end (through WP) remove their old content too?
This is only on your end, through the WP admin panel. *Browser* caching is different from the website itself actually doing the caching. But as I mentioned, most plugins are set to do this themselves periodically.
Thank you Ashley for the common sense approach on “Purge from Cache” I have read other articles and it just talks nonsense, so what a breath of fresh air when you find a blog that does exactly what it says on the tin. Thank you again
This is brilliant! Thank you so much. I’m trying to speed up my website and started to see that “do you want to purge” thing on my posts. I didn’t want to hit anything that I would regret later. So I guess I can just wait since my old updates that aren’t critical will update anyway when my cache plugin does. Thanks for explaining it so well!
Thanks for the valuable information. I am glad that i am no more tensed about my blocked website traffic and it’s again touching sky π Thank you very much again
Hey Ashley, it seems a little embarrassing, but I wouldn’t consider myself a novice with computers, however I was a little confused with what ‘purging the cache’ actually did. I really liked your down to Earth explanation that doesn’t ‘offend’ the reader with over simplification. Thanks again for clearing that up!
I’m glad this was helpful. π
Hi Ashley,
This was an awesome explanation of “Purge Cache”!!!! I thank you very much for helping me understand.
Thanking you,
Troy
THANK YOU! This post was so easy to understand and now we know why our new posts were not popping up straight away haha! YAY! THANK YOU so much! Xx e + c
What a fantastic explanation and well clarified
I installed one of the plugins you mentioned and I was wondering what “purge cache” mean. Thanks for a wonderful explanation! It really helped me understand it.
Finally found a great explanation on what Cache Purging is all about on WordPress. I do have the W3 Total Cache plugin installed. I was wondering if these plugins slow down your sites at all in loading for viewers?
If configured incorrectly, it could potentially make your site slower, but the goal of a caching plugin is to make your site faster.
The downside is that caching plugins use a lot of resources. So you might use more resources (CPU, RAM) with your web host, but your pages should load faster for viewers. But if you use too many resources, you could reach your limit, and if you do reach your limit then your site will load more slowly.
This is soooo helpful. Thanks so much, really appreciate the advice in layman’s terms. Kate
You’re welcome! π
Hi Ashley, I typed “what does purge cache mean?” in Google, and was lucky enough to click on your page. Thanks a million, Google’s page speed etc is driving me nuts. I wasn’t sure whether I should click on it too, now I know I can,
You’re very welcome. π
Great answer to a question I have been asking myself for a couple of months! Thank you for all you do, and keep up the good work!
I was so confused with option of ”Purge from cache” whenever i try to post/update, finally got the nice explanation. thanks a lot.
Hey Ashley, these is very easy to understand post i ever read about WordPress caching which helps me alot to understand WP caching. Thank you.
Thank you, thank you, thank you! Your author/reader metaphor made so much more sense. Although I’ve had a WP site for a while, I’ve done quite a bit of outsourcing. Now that I’m ready to take over myself, I’m finding it’s a lot like reading Latin while being dyslexic! Great post. Looking forward to others.
I really was wondering what the term purging meant. Thanks to this article I have learnt a thing or two on the same
This was a great read!!! Thank you so much!!!
Amazing! Great, great metaphor!!! Thank you for simplifying this for people like me. π
Thank you, thank you, thank you for this information that explains it all perfectly because I had the same question!
Thank you for this blog post. Really helpful and easy to understand. I just pressed purge cache by mistake – had a meltdown with my site yesterday as buggered up the coding, so am a little touchy still. Your post has soothed my very frayed nerves. And great to see some girlpower out there too!
I’m glad you found this post Kate. π Meltdowns aren’t fun!
Thank you! First time someone’s explained this to me in a way I understand.
This helped! Thank you! Going to purge now!! Haha
What a refreshing way to explain WordPress. Thank you!
Hey Ashley! Thank you for this amazing post and knowledge! Was a great read! Wishing you a super amazing day! π
really nice article, it really helped me! I had the same doubt of the meaning of “purging my cash”. To make it worst im brazilian so I had to look up the meaning of “purge”. Thanks a lot!
correction: purging my caching*
Hello,
Such a wonderful article. Easy to understand, helped a lot in understanding the core functionality of the cache plugin
THank you.
Very helpful. Exactly what I was looking for. Thank you.
Shawn
Is it recommended to purge caches daily or once a week is fine?
Ideally you should be able to set it up to purge automatically when publishing new posts/pages. If you can do that, you may never need to purge at all unless perhaps making theme/design edits.
Is it recommended to use a Cache plugin for wordpress?
If you don’t already have caching on the server – yes.
Thanks for the post. Very easy to understand!
Awesome explanation Well done and thanks.
I love to read about wordpress and plugins. It’s really an amazing post. As your suggestion, I’m using now W3 Total Cache. Thanks for the sharing your knowledge.
Thanks so much Ashley, this explanation was super helpful!
Thank you for the valuable info! Im glad you left a metaphor:) Its sooo much easier to understand.
hello i am using CDN for loading fast to my ecommerce portal actually i am suffering from too slow load times that brings slow conversions and lost many traffic rate.
while setting inside cloudflare cache called purge cache i was extremely unknown regarding this topic hen i studied about your blog and then i found about the article is working good thanks..
This is so helpful. Thank you for this!
Thank you for explaining in a way I could understand!
thanks — very clear answer — and allows me to fully understand it. Great job.
Thank you so much to clarify that, I was afraid of purge cache but after reading this, I did and no problem at all, thank you so much.
Best Regards
Thank you for this explanation! Sadly, I was one of those people who worried that “purging my cache” meant deleting my blog hahah kinda silly now that I think of it. The metaphor really helped with my understanding.
I needed this and you managed to put it in simple terms without over simplifying! Thanks so much!
That was a great explanation and example, thank you!
This article is great to understand the concept. Ashley you have explained this very well know i have one more question to you. I have w3 total cache plugin for my website. It is working good for desktop speed but Mobile speed is still 30-35 by developers.google.com ….. Can you please help me to boost mobile speed?
Still relevant and useful in 2019. Thanks!
One of the best articles I have read so far. And the best part I like about it that you have explained it in such a simple manner. Thank you for posting this article.
I just started a 1 month old blog, at first I was confused and overwhelmed by all the information out there. But after stopping by this post, I know much more about the Cache thingy.
Thank You
Amazing Post, Thanks for Sharing