I’m running into a bit of a strange (to me) situation, and would appreciate help. I’m not even entirely sure that this is the right forum to ask for help, so pointers somewhere else would be great if there’s a better place.
I have WP with WooCommerce installed, and it’s been working great for a couple of years. In the last little while (month? – not quite sure when this started), the WooCommerce cart widget has not been updating when a customer adds a product to their cart.
This can be seen on the following page (https://adventuretaco.com/product/tacoma-to-tundra-hard-brake-line-kit/) by
Open browser developer tools and switch to the Networking tab
Click the Add to Cart button Edit/update: ==> Page reloads as expected
Watch the “cart” widget on the right and note that it does not update
As the page is reloading and loading all resources, watch the browser dev tools, and look for the request to https://adventuretaco.com/?wc-ajax=get_refreshed_fragments
The result is that it is always cut off after exactly 5 seconds. (or 5.01/5.02 seconds).
REPRO 2:
- Open browser developer tools and switch to the Networking tab
- browse to https://adventuretaco.com/minimal
- watch the browser dev tools, and look for the request to https://adventuretaco.com/?wc-ajax=get_refreshed_fragments
Because the response doesn’t come back in that time, the cart never updates. However, direct requests (non-AJAX) to that URL do return correctly (after more than 5 seconds) with the correct cart data.
Why is this request getting cut off? The answer might be in the browser dev tool data, but I don’t see it (or know what I’m looking for).
I’m not sure if it matters, but the backend is linux/nginx.
Thanks!