WooCommerce Slow Because of admin-ajax.php and Cart Fragments
Shops get slow pages and high load from background requests. Reduce them safely.
Reference guide. This guide is written from established practice and the official documentation of the tools involved. We have not yet tested every step on a live demo site. Back up your site before you change anything.
WooCommerce updates the mini-cart in the background. On busy or small servers, these requests add load.
Find them
In the browser Network tab, look for requests to admin-ajax.php or ?wc-ajax=get_refreshed_fragments. See our console guide.
Reduce the load
- Use a caching setup that works with WooCommerce. See our caching guide.
- Disable the cart-fragments script on pages that do not show a mini-cart, using a trusted performance plugin option.
- Remove plugins that poll the server frequently.
- Upgrade hosting if the shop has grown. See our hosting guide.
Test after each change
Make sure the cart count and checkout still work.
Related guides
- WordPress High CPU Usage From wp-cron.php: How to Reduce It
- WordPress Site Is Slow: Practical Steps to Speed It Up
- WordPress Site Slow After an Update: Find the Cause
- WordPress Images Look Stretched or Wrong Size: Regenerate Thumbnails
Did this solve it? If not, email hello@sitefixlab.org with the exact error text and we will look into it. Try the problem finder.