Troubleshooting with Varnish
Every site with Varnish has a Proxy Cache Purge plugin, and you can purge the Varnish cache through this plugin.
How to Purge Varnish Cache?
Click the Empty Cache button on the toolbar.
How to Set Varnish into Development Mode?
In development mode, WordPress will prevent visitors from seeing cached content on your site. You can enable this for 24 hours, after which it will automatically disable itself. This will make your site run slower, so please use it with caution.
Add define(‘VHP_DEVMODE’, true); to your wp-config file if you need to keep development mode active for an extended period of time.
Go to Dashboard > Proxy Cache
> Development Mode Settings
> Check Activate Development Mode
and save the DevMode settings
.
Troubleshooting
With Varnish and AIOS optimize, some scripts might not be updated due to cache. To fix it, you need to do the following: