Define DONOTCACHEPAGE does not work

I follow this guide here: https://wpmudev.com/forums/topic/hummingbird-definedonotcachepage-true-for-specific-page/#post-3715635 and I have the define(‘DONOTCACHEPAGE’, true); defined in a file: page-template-nocache.php in a childtheme (Mobilecursillo Divi Child); This template is in use for the page I do not want to cache. However, the page still contains the note that it is being cached by Hummingbird. I have
https://mobilecursillo.org/todays-readings.
Page template file:

<?php
define(‘DONOTCACHEPAGE’, true);
/*
Template Name: No Cache
*/
get_header();

  • Kris Tomczyk
    • Ex Staff

    Hi nicollb

    I hope you are doing good today.

    To investigate this more and check I will need access to site and FTP.

    Please send it through our secure contact form here https://wpmudev.com/contact/#i-have-a-different-question and make sure that subject is “I have a different question” and:
    – Mark to my attention: ATTN: Kris

    – Site access:
    — login url
    — username
    — password

    – FTP
    — host
    — username
    — password
    — port

    – Link back to this thread

    Please don’t share any sensitive information (i.e credentials) in the Support Forum, it has public visibility and everyone will have access to it.

    Please confirm here in the thread that you have sent that message.

    Kind Regards,
    Kris

  • Kris Tomczyk
    • Ex Staff

    Hi,

    I was not able to replicate this issue on my lab site. Even if we have the same template. This could be some sort of conflict issue with another plugin. However I added your page slug “todays-readings” in Hummingbird -> Caching -> Exclusions and that solve the issue.

    If you still want to use “define(‘DONOTCACHEPAGE’, true);” in this page template I recommend to remove “todays-readings” from Hummingbird -> Caching -> Exclusions and run full plugin conflict test.

    Please deactivate all plugins except Hummingbird and check if the problem is gone. If so, then enable all plugins one by one and find which one is having a conflict.

    Before this test I recommend full site backup.

    If this will not give any positive results I can then escalate this case to our SLS team to take a closer look a this.

    Please let us know.

    Kind Regards,
    Kris

  • nicollb
    • Flash Drive

    Kris: I agree that when I add the page slug to Hummingbird settings, all goes swimmingly. However, every time Hummingbird updates, that is lost and I must remember to re-add the page slug to the Hummingbird settings. Since I manage 20+ websites, I often miss remaking the change and discover the problem only when a user complains that the page is “stuck”.

    I will also follow the testing steps and let you know. My preference is that once I set “todays-reading” in the exclusions that it simply stay until I tell it to go away (which would probably be never).

  • Kris Tomczyk
    • Ex Staff

    Hi,

    In meantime, I have made additional tests on my lab site with different Hummingbird versions, and each time after update to the last version all my data from Hummingbird -> Caching -> Exclusions are still there. This really sounds like some conflict here as I’m not able to replicate this. Please let me know about the results.

    Kind Regards,
    Kris

  • nicollb
    • Flash Drive

    Just a heads up: after trying all solutions and using the one where I included the page slug in the “do not cache” I was able to function for a few days. Over the weekend, the page slug (todays-readings) once again vanished; my setting to clear the cache every 24 hours returned to being unchecked and my page ceased to behave as desired. I have deactivated Hummingbird and will be removing it from my site due to this instability and failure to perform.

    I am the admin for the site, so unless my site has been hacked and I don’t know about it, there is something very amiss with this plugin. Sorry — the idea is great.