blank page cached ONLY for homepage URL on Wordpress when using keyword monitoring

Francis Daly francis at daoine.org
Mon May 8 18:21:44 UTC 2017


On Mon, May 08, 2017 at 01:59:43AM -0400, seth2958 wrote:

Hi there,

I do not have an answer for you, but I have some suggestions which might
help you identify the problem and solution.

> fastcgi is caching a blank page when monitoring tools like
> Monitis or Uptime Robot run keyword-based uptime monitors for the root URL
> only.

Can you use tcpdump or something similar to identify the exact request
that is made? (Including all of the headers that are sent.) If it reliably
fails, then you should be able to construct an equivalent "curl" command
to make the same request, and see it fail yourself.

>             location ~ /purge(/.*) {
>                     fastcgi_cache_purge WORDPRESS
> "$scheme$request_method$host$1";

I think that that says that you are using nginx-plus, in which case
there may be a better place to send your request for a timely response.

>             location ~ \.php$ {
>                     if ($request_method = HEAD) {
>     	                set $skip_cache 1;
>             	}

That is "if" inside "location"; it is very easy to go wrong using that
construct. It might be worth considering moving those three lines outside
of all "location" blocks, to match the other similar ones.

Good luck with it,

	f
-- 
Francis Daly        francis at daoine.org


More information about the nginx mailing list