• Resolved ChickenDipper

    (@chickendipper)


    Hi,

    WPO has the filter:
    add_filter( ‘wpo_cache_show_cached_by_comment’, ‘__return_false’ );

    This hides the html comment well for cached pages, but does not hide the message from pages not served from cache (even while debug is off). The message still shows:
    <!– WP Optimize page cache – https://getwpo.com – Page not served from cache –>

    Please can this be hidden also?

    Another idea which would be helpful would be the option to hide everything apart from the pages cache timestamp and when not cached only show “Page not served from cache”.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter ChickenDipper

    (@chickendipper)

    Hello,

    I have managed to resolve the above with some custom functions code, which removes the “Page not served from cache” also but would still be nice to just show the cached timestamp or not cached message without WPO links in the HTML comment.

    Apologies I have another question related to an issue I am having.
    I use cloudflare with a cache everything rule.
    While WPO page cache is disabled when visiting my site the cloudflare cache is HIT for my html, images, css, js etc.
    While WPO page cache is enabled my cloudflare cache is always REVALIDATE for html, everything else is still HIT.

    Here are the headers from the main page request with WPO page cache disabled:
    https://justpaste.it/j9m9o

    Here are the headers from the main page request with WPO page cache enabeld:
    https://justpaste.it/jeqfy

    Can you please help me understand why WPO page cache would cause this to happen and how I can resolve this as I do not want REVALIDATE for every html request but would like to keep WPO page cache as it is useful to prevent direct server requests when CF cache expires or hasn’t been created for a certain page.

    Thank you

    Plugin Support vupdraft

    (@vupdraft)

    Could you provide your website URL?

    Plugin Support vupdraft

    (@vupdraft)

    Can you provide your website URL?

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘WPO Cached Comment’ is closed to new replies.