What is Caching?
Caching is a process of storing copies of the website file in a cache or temporary location so they can be accessed more quickly. The caching process helps improve the speed and performance of WordPress and the overall user experience.
WordPress has different types of caching solutions. The most common way is to use a WordPress caching plugin such as WP Rocket or WP Super Cache. These plugins allow you to control which files and media are cached when the cache expires, when the cache is cleared, and more.
Why do we need to clear the cache of the WordPress site?
Sometimes the cache doesn't show the changes you made on your WordPress site. Instead of loading the new version of the website, only the old version is displayed. This prevents both you and your visitors from seeing any updates you make. Clearing your WordPress cache will always enable the latest version of your site.
How to clear the WordPress cache without using a plugin?
You can disable caching and clear the WordPress cache without the plugin, but this will require SSH or FTP access. We have described both options below.
How to disable caching over FTP?
If you don't want to use plugins and want to disable caching, you will need FTP access of your WordPress site. Open the file wp-config.php (usually located in your main WordPress folder) through an FTP client such as FileZilla and paste the following line. After then, click on the Save Changes button to save it.
If your file already contains the appropriate lines of code, just edit them to match the lines above.
How to clear the WordPress cache via FTP?
To clear the WordPress cache (as opposed to disabling the cache entirely):
1. Use FTP to access your WordPress files.
2. Go to the wp-content folder and open the cache folder.
3. Delete everything from this folder.
Important Note: Please do not delete the Cache folder. You need to delete the content of the cache folder.
How to clear the WP cache using SSH?
If your hosting provider enables SSH (Secure Shell) access, there is another way to clear the WP cache. Just paste the following command.
$ wp cache flush