Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty cache pages #329

Open
DeeKey opened this issue Feb 27, 2024 · 0 comments
Open

Empty cache pages #329

DeeKey opened this issue Feb 27, 2024 · 0 comments

Comments

@DeeKey
Copy link

DeeKey commented Feb 27, 2024

Wordpress site is being used as a news agency with multiple editors working simultaneously online publishing articles.
Recently the server was updated to Nginx -Srcache - Redis. Also there are two plugins: nginx-helper for page caching and Select Redis Object Cache for caching mysql queries.

After the first day of work we noticed that there are empty pages cached. No page code but only Cache stamps (stamped by nginx-helper). Cache was purged and the problem gone.

We have several guesses why it happened:

  1. just a "rubbish" condition which will gone after clearing the cache entirely
  2. some sort of nginx server misconfiguration
  3. nginx-helper caused problems

Nginx-helper can cause problems during massive simultaneous post publishing. It will try to clean all the cached pages related to the post being published and can fail to do it correctly as there are many requests to purge the same page over and over again.

Also there might be nginx config problems. I read that this might be related to the caching key. But our key seems ok:
set $key "nginx-cache:$scheme$request_method$host$request_uri";

If someone have idea how to fix or prevent the mentioned condition from ever occurring please post reply here!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant