debops-wordpress icon indicating copy to clipboard operation
debops-wordpress copied to clipboard

Wordpress Doesnt Detect Varnish

Open zedrickvillas opened this issue 10 years ago • 11 comments

When i try to configure Varnish Purge. There is a warning saying We did not find Varnish active for this domain. Is this normal or something is wrong on my server?

zedrickvillas avatar Dec 03 '16 15:12 zedrickvillas

Hmmmm I have not checked the new major version of the Varnish plugin. It's really designed for Dreamhost so it's possible I need to fake something for it. I'll investigate.

carlalexander avatar Dec 05 '16 11:12 carlalexander

Ok thank you. let me know once you find a solution.

zedrickvillas avatar Dec 05 '16 14:12 zedrickvillas

I've just installed a fresh version of WordPress 4.7 and the Varnish plugin version 4.0.2. If I click on "Purge Varnish", I don't get an error. Do you have any more details on your current setup?

carlalexander avatar Dec 09 '16 01:12 carlalexander

Does wordpress detect varnish or does the responses has varnish headers?

zedrickvillas avatar Dec 09 '16 01:12 zedrickvillas

Neither WordPress nor Varnish detect each other. Varnish has special rules for dealing with WordPress requests or response, but it doesn't know if they came from WordPress per say.

If Varnish is active, you should have some special headers in your response like x-cache and x-cache-hits. If they're not there then, it's possible that Varnish isn't running on the server.

carlalexander avatar Dec 10 '16 21:12 carlalexander

I feel like a bit of an idiot for not thinking of it sooner, but did you add the directives in the wiki?

carlalexander avatar Dec 12 '16 12:12 carlalexander

Is this still an issue @zedrickvillas?

carlalexander avatar Jan 09 '17 19:01 carlalexander

@carlalexander this is an issue for me. I made sure the right directives were in the vars and tried removing and reinstalling the plugin. I do have the x-cache headers, but the varnish plugin does not detect varnish.

georgiemathews avatar Apr 10 '17 16:04 georgiemathews

Do you have a link to the site in question @georgiemathews?

carlalexander avatar Apr 11 '17 01:04 carlalexander

I'm going to close this for now. You can reopen the issue again if you still have a problem @georgiemathews!

carlalexander avatar May 12 '17 00:05 carlalexander

I am getting the error "We did not find Varnish active for this domain." in the "Varnish HTTP Purge" plugin...

screen shot 2017-06-01 at 00 35 30

I have followed the following instructions https://github.com/carlalexander/debops-wordpress/wiki/How-to-configure-Varnish

Varnish is running: screen shot 2017-06-01 at 00 41 03

gleert avatar May 31 '17 22:05 gleert