Welcome! Log In Create A New Profile

Advanced

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

Francis Daly
May 08, 2017 02:22PM
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@daoine.org
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

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

seth2958 May 08, 2017 01:59AM

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

Francis Daly May 08, 2017 02:22PM

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

seth2958 May 08, 2017 07:17PM

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

pbooth May 09, 2017 03:12PM

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

seth2958 May 09, 2017 03:20PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 243
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready