• Resolved Apfelbiss

    (@apfelbiss)


    Hello,

    `how can I delete the information displayed under “?wc-ajax=get_refreshed_fragments”?

    After adjusting the template for the plugin “WooCommerce Menu Cart” (addition of a <span>), the old code is still displayed – as long as the shopping cart is empty. As soon as something is added to the cart, this area is displayed correctly.

    Unfortunately, I did not find anything either via FTP in the cache folder or in the database.

    It must be a server-side storage, because this still exists after clearing cache and cookies.

    Thank you in advance.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Mirko P.

    (@rainfallnixfig)

    Hi @apfelbiss,

    Thanks for reaching out in the Forum.

    how can I delete the information displayed under “?wc-ajax=get_refreshed_fragments”?

    WooCommerce “Cart Fragments” is a script using Ajax to update the cart without refreshing the page. There are two steps you can follow here in order to disable WooCommerce Cart Fragments.

    Let us know if that helped you out with that issue.

    Thread Starter Apfelbiss

    (@apfelbiss)

    Hello @rainfallnixfig,

    thank you very much for the quick reply.

    I had probably expressed myself a little misleadingly.
    What I would like to know: How can I update the refreshed_fragments, so that the correct code is also shown with an empty cart?

    Since I am using WP-Rocket as a cache plugin, I guess completely disabling this feature is not possible or useful.

    Mirko P.

    (@rainfallnixfig)

    Hi again,

    Thanks for clarifying this.

    If the code/content is stored on the server you could clear server-side caching. But just to check: since you’re using a caching plugin, can you make sure the Cart page is excluded from the cache through the respective settings panel? You’ll find more details here:

    https://docs.woocommerce.com/document/configuring-caching-plugins/

    Thanks.

    Thread Starter Apfelbiss

    (@apfelbiss)

    Hello,

    of course I have cleared server-side cache via WP-Rocket several times, including OPcache and critical CSS.

    Even when logged-in (caching via WP-Rocket is disabled for logged-in users), the old fragment is still shown for the menu cart, when empty.

    As explained on the mentioned page, no configuration is needed for WP-Rocket.

    Mirko P.

    (@rainfallnixfig)

    Hi again,

    I think you would need to act on this function here:

    https://github.com/woocommerce/woocommerce/blob/f95ffe16d034a8019f8fe0355d41998b84560182/includes/class-wc-ajax.php#L165

    But this is a more development-oriented issue and I’d suggest asking your question in development channels such as #developers of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well.

    Cheers.

    Mirko P.

    (@rainfallnixfig)

    Hi there,

    It’s been a while since we last heard back from you, I’m going to mark this thread as resolved.

    Hopefully, the above information helped you out! If you have further questions, please feel free to open a new topic.

    Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Clear refreshed_fragments?’ is closed to new replies.