Hello @tinablack2
THank you for reaching out and I am happy to help!
I’ve checked your website and after inspecting the sources i can see the following W3TC report:
Page Caching using Disk: Enhanced (DONOTCACHEPAGE constant is defined)
The DONOTCACHEPAGE constant, when defined in the template, perevents the Page Caching from actualy caching the page.
This being said, the reason why you are seeing this is because somewhere this constant is defined. This may have been added by your theme or some other plugin.
I hope this helps and let me know if you have any other questions.
Thanks!
Hi Marko,
Thank you. I really appreciate your response. I will try to identify where that constant is being defined. Do you have any suggestions on where to look specifically?
Thank you!
Tina
Hi Marko,
One last question, we have been using W3 Total Cache since 2018 with no errors like this. Why is this Site Health issue only arising now? Does it have something to do with the new Site Health checks included in WordPress 6.6?
Thank you,
Tina
Hello @tinablack2
Thank you for your feedback.
You should check that constant in your theme templates and theme options.
This health check notification was added fairly recently, however, most likely some theme updated or added this constant, and now you are seeing the problem.
The reason why you see it, is that the mention constant is defined, and if it was not added buy you (The front page should be cached in 95% of the cases) it was probably added by your theme in some recent update.
Thanks!
Hi Marko,
Thanks to a previous post in the W3 Total Cache forum, I found the culprit!
https://wordpress.org/support/topic/donotcache/
We use the Polylang plugin that has a setting “Detect browser language – When the front page is visited, redirects to itself in the browser preferred language. As this doesn’t work if it is cached, Polylang will attempt to disable the front page cache for known cache plugins.”
Since we only use one language, I was able to deactivate this setting which resolved the Site Health error message.
Thanks again for your patience and support!
Tina
Hello @tinablack2
You are most welcome!
We would really appreciate it if you could take a minute and post a review here. This will help us to continue offering a top-notch product to users.
Thanks!