• Resolved tinablack2

    (@tinablack2)


    Hello,

    We are getting a new Site Health error: “Page cache is detected but the server response time is still slow.” I have searched for an answer to this question for days – trying different solutions, including removing .js code and installing an additional plugin for optimization: WP Optimize. I found a few threads on this forum but nothing has worked for me.

    We have been using W3 Total Cache since 2018. Can you help?

    • Median server response time was 758 milliseconds. It should be less than the recommended 600 milliseconds threshold.
    • ?There were 2 client caching response headers detected:?cache-control,?expires.
    • ?A page cache plugin was detected.

    Thank you,

    Tina

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    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!

    Thread Starter tinablack2

    (@tinablack2)

    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

    Thread Starter tinablack2

    (@tinablack2)

    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

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    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!

    Thread Starter tinablack2

    (@tinablack2)

    Hi Marko,

    Thanks to a previous post in the W3 Total Cache forum, I found the culprit!

    https://www.ads-software.com/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

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    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!

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.