This tutorial will review the configuration of caching plugins on your WordPress staging websites. There are multiple options for available caching plugins in WordPress for better loading time of your website. The important thing when you push changes is to clear the cache, so you can ensure that you see the updated content properly.
The SitePush staging for WordPress allows automated purge of the cache on your website, so you do not need to perform that manually after each change. This is a good feature that will definitely save you time.
When you install a caching plugin on your website, the SitePush staging will notify you that you need additional configuration so it could work normally. The message will say that you need to define the cache directory in the staging configuration file.
What you need to do, is to access the staging configuration file on your account and define the cache directory properly in it. This will allow SitePush to clear the cache each time when you push changes.
Open up the staging configuration file and add a new section, which will apply for all WordPress installations, configured with the staging plugin:
[all] cache = yes caches = /home/example/public_html/path-to-cache-directory caches = /home/example/public_html/path-to-second-cache-directory
The options available in the new section are:
If the configuration of the caching plugin on your website is set properly. You will no longer see the warning message, once you log into the administrative area of your website.