• Resolved margaritisk

    (@margaritisk)


    I get the following json as a response on a specific product:

    {“version”:”20210604″,”show_thumbnails”:false,”show_date”:true,”show_context”:true,”layout”:”grid”,”headline”:”\u03a3\u03c7\u03b5\u03c4\u03b9\u03ba\u03ac”,”items”:[]}

    and only that, no html,css,js etc.
    When i manually purge the cache it work like it should. After a while the error comes back up. I used the exclude url but nothing changes.

    This product uses a custom template an the code used is:

    function single_product_custom($template)
    {
    if (is_singular(‘product’) && get_the_ID() == xxxx) {
    $template = get_stylesheet_directory() . ‘/single-product-custom.php’;
    }
    return $template;
    }

    add_filter(‘template_include’, ‘single_product_custom’, 50, 1);

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

Viewing 1 replies (of 1 total)
  • Plugin Author Stanimir Stoyanov

    (@sstoqnov)

    SiteGround Representative

    Hey @margaritisk

    This is not an issue with our plugin. Something is not properly working on your site and when the cache for the provided url expires, we cached the next dynamic version.

    In your case, the dynamic version is broken by something.

    You can use the exclude URL functionality or you can exclude the entire post in the plugin interface.

    Regards,
    Stanimir

Viewing 1 replies (of 1 total)

The topic ‘Error on specific product’ is closed to new replies.