Purging in WordPress
“To purge” means to get rid of something unwanted, harmful, or impure completely.
I hope you know there is cache system in wordpress which is used to make your website efficient. Let’s say if wordpress has a list of tasks from number 1 to 10, just to load your website but the initial some steps generate the same results most of the time. WordPress just plays a smart trick and stores the result at the end of step 4 and then only follows from step 5 to step 10. The storage of the result at step 4 makes the overall website load for wordpress faster.
However, if a change is made on the website such that the result at the step 4 changes and no longer remains the same as the one that wordpress had stored. We need a system to purge, get rid of unwanted step 4 result stored by wordpress.
How to purge all cache in WordPress
Follow the steps:
- Go to your WordPress Dashboard
- Hover over LiteSpeed Cache
- Select Toolbox
- Look for Purge All in Purge tab
- Click on Purge All
- Wait for “Purged all caches successfully.” Notification
When to Purge All in WordPress
WordPress updates it’s cache after sometimes. But until that time comes, wordpress would keep showing you and your visitors you old wordpress website that does not include your most recent changes. You might see different settings, layouts and contents in you WordPress Dashboard then the one when you visit live version of your website. Purging All would be required in wordpress for:
- editing
- your posts
- your pages,
- your menus
- update of
- your wordpress theme,
- core files
- plugins
Side-effects of Purging All
Purging All might cause your website to load a little slower than usual when your visitor visits your updates website for the first time. Therefore, it is better to avoid purging cache very frequently. Having a consistent, smooth, and fast website loading adds to the user experience and increases the chances of him re-visiting your website.
Purging All does not touch your actual database, your posts, media, or settings. It only clears temporary cache files.
How purging works
If you have read the previous sections, at this point you would have already guessed how purging works. Yes, it is as easy as replacing the old cache storage with new cache storage. If you do not purge your cache manually, the automatic tools like caching plugins, LiteSpeed in our case or reverse proxy tools like Nginx, or Varnish purge the cache like their scheduled jobs.
Summary
WordPress caching system makes the websites faster. But sometimes this cache system ignores the new changes by the WordPress administrator. To load the newest changes for your WordPress Website, it is important to purge your cache using tools like LiteSpeed.
