Wrong cookie leads to Ajax request on every page
-
Hi,
what is the point of your custom function wp_footer()?
jQuery.cookie('woocommerce_cart_hash', null, {path: '/'});
This is deprecated and
null
is converted to string.And that is why all sites using WooCommerce Currence Switcher have one more Ajax request
?wc-ajax=get_refreshed_fragments
for every page. WooCommerce is checking forcookie_hash
and it returns stringnull
which is compared with emptycart_hash
and it returnsfalse
In the end this Ajax request is processed on every page load and leads to slowing website ??Thank you for your help!
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Wrong cookie leads to Ajax request on every page’ is closed to new replies.