Skip to Content

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:

Step 1. Purge and compile CSS and JS in AIOS Optimize

  • go to Dashboard > AIOS Optimize > Optimization > Click the Purge and Compile CSS and JS Button.

Step 2. Purge the varnish

  • press the Empty Cache button on the toolbar.

Step 3. Optional

  • set varnish in Development Mode
Last updated on