• Resolved Micha – MS29

    (@fotoglut)


    Since the update to version 5.2.1 the plugin no longer works with CometCache.
    Even if you exclude the JS.
    Your plugin counts and does, but does not show anything anymore.
    If you switch CometCache off, the display of the pages and corresponding calls in the admin as well as in the frontend runs again.

    CometCache puts the buck to the plugin authors again ??

    >>
    Theme/plugin developers can take advantage of the Comet Cache plugin architecture by creating PHP files inside this special directory: /wp-content/ac-plugins/. There is an example plugin file @ GitHub (https://cometcache.com/r/ac-plugin-example/ please review it carefully and ask questions). If you develop a plugin for Comet Cache, please share it with the community by publishing it in the plugins respository at www.remarpro.com. >>

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

Viewing 1 replies (of 1 total)
  • Plugin Author Hector Cabrera

    (@hcabrera)

    Hi @fotoglut,

    Something is adding /*<![CDATA[*/ and /*]]>*/ to WPP’s inline script on your site:

    <script type="application/json" id="wpp-json">/*<![CDATA[*/{"sampling_active":0,"sampling_rate":"100","ajax_url":"https:\/\/fotoglut.de\/wp-json\/wordpress-popular-posts\/v1\/popular-posts","ID":false,"token":"94966c5f22","lang":null,"debug":false}/*]]>*/</script>

    That’s the reason why WPP fails to get the data container within its script tag. This is what it should look like:

    <script type="application/json" id="wpp-json">{"sampling_active":0,"sampling_rate":"100","ajax_url":"https:\/\/fotoglut.de\/wp-json\/wordpress-popular-posts\/v1\/popular-posts","ID":false,"token":"94966c5f22","lang":null,"debug":false}</script>

    Because WPP finds the string in an unexpected format it fails to parse the variables in it, hence the reason why it doesn’t work.

    Could you please reach out to the Comet Cache team and ask them whether it’s their plugin that’s adding this to WPP’s inline script tag, and if so whether it’s possible to prevent it from doing that?

    • This reply was modified 4 years, 4 months ago by Hector Cabrera. Reason: Fixed second script tag
Viewing 1 replies (of 1 total)
  • The topic ‘5.2.x dont work with CometCache’ is closed to new replies.