WP Rocket and Varnish Cache - Purge problems

Hello,

I want to use WP Rocket. But it seems that the varnish cache isn’t cleared. I had to activate and deactivate Varnish completely to purge the cache.

Is there a solution for this?

Would be great! Thank you :).

Thought it is wokring. but it isn’t :-/…
I found this: github . com /wp-media/wp-rocket/issues/1257 but it didn’t solve my problem. Any help would be awesome!

Hey @info4 how are you doing?

I use WP Rocket and Varnish together and they work very well. All you have to do is to activate the Rocket Add-On on the lower part of the menu on the WP Rocket Settings Page, then WP Rocket will purge Varnish for that site when you purge it.

On the other hand, you should add all Varnish Exclusions (URLs & Cookies) on the Cloudways Platform under Apps --> Your App --> Application Settings --> Varnish so it doesn’t try to cache those. Otherwise errors may occur both on your WordPress with WP Rocket, and on you Server with Varnish purging or not.

Hope it help you to solve, cheers!

1 Like

Thanks for sharing the detailed solution @fabiofava