Disable Cart Fragments by Optimocha
A better way to disable WooCommerce's cart fragments script, and re-enqueue it when the cart is updated. Works with all caching plugins.
Use with caution
Disable Cart Fragments by Optim… works, but test it on a staging site before relying on it in 2026. It runs on 10K+ sites, is rated 4.9/5 and was last updated 1 year ago, and scores 51/100 on our health check.
- Proven at scale on 10K+ active sites
- Momentum — downloads up 17.5% vs the previous 30 days
- No update in over a year
- Only tested up to WordPress 6.8 (latest is 7.1)
How does it stack up?
Side-by-side on installs, updates, ratings & supportDaily downloads
Download spikes usually follow a new release — each site that auto-updates counts as a download.
Rankings
Where Disable Cart Fragments by O… stands todayWordPress.org search rankings
Live position in the plugin search, top 100| Keyword | Position |
|---|---|
| cart fragments | #1 |
| disable cart fragments | #1 |
| woocommerce | >100 |
| woocommerce cart fragments | #5 |
Version adoption
Share of active sites per release.
Rating breakdown
★★★★★★★★★★ 4.9 from 16 reviews
About Disable Cart Fragments by Optimocha
From the official readme · v2.4.1Description
Disable Cart Fragments is a lightweight plugin which effectively speeds up your WooCommerce website by disabling the cart fragments script. It also enqueues the script back when the cart is not empty anymore; so it only works while the cart is empty.
Why is disabling cart fragments important?
WooCommerce makes an AJAX request to check your cart and update your cart totals in wherever your theme shows cart contents (like the header menu). This AJAX call is made to override caching plugins, which is good, but it generally takes time.
How does Disable Cart Fragments solve the issue?
With our plugin, you have the best of both worlds: You keep using the caching plugin and you still get to update the cart totals when the cart is not empty. This check is made via WooCommerce cart cookies, so it still employs JavaScript but doesn’t rely on slow AJAX requests. The check is made instantly, whether you’re using a caching plugin or not. How cool is that?
WooCommerce Optimization Services
Feel free to reach out to us at Optimocha.com and let us help you optimize your WooCommerce website!
Main plugin features
- Disables WooCommerce cart fragments.
- Checks the cart cookies and if it’s not empty, loads the cart fragments script so the cart totals are still updated.
- Brings you joy. (WARNING: Might not bring joy in some rare cases.)
Installation
- Download the plugin (.zip file) on your hard drive.
- Unzip the zip file contents.
- Upload the
disable-cart-fragmentsfolder to the/wp-content/plugins/directory. - Activate the plugin through the ‘Plugins’ menu in WordPress.
- When activated, it will start working. There’s no settings page, simply activate and use.
Changelog
Ensured compatibility with WooCommerce 7.3.0 (including HPOS or High-Performance Order Storage), WordPress 6.1.1 and PHP 8.1.
2.4.1
- Bug fix.
2.4
- Tested and ensured compatibility with the latest versions of WordPress, WooCommerce and PHP.
- Cleaned up the code a bit.
2.3
- Tested and ensured compatibility with WordPress 6.2 and WooCommerce 7.8.0.
- Fixed an issue: Store managers were unable to dismiss the notices.
2.2
- Tested and ensured compatibility with PHP 8.1, WordPress 6.1.1 and WooCommerce 7.3.0.
- Added the necessary HPOS (High-Performance Order Storage) compatibility code.
2.1.1
- Version bumps to ensure DCF is working with WordPress 6.0 and WooCommerce 6.5.1.
2.0
- Turns out WordPress thinks v1.21 is “newer” than 1.4 – kind of makes sense; we should’ve made v1.21 as v1.2.1. Anyway, we’re releasing v2.0 which is the same as v1.4 but this will set the record straight and people using v1.21 will get updates this time.
For developers
Is this your plugin? Show off the numbers.
Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.
Best Disable Cart Fragments by Opt… alternatives
All cart fragments plugins →| Rank | Plugin | Active installs |
|---|---|---|
| 2 |
|
100+ |
FAQ
Disable Cart Fragments by Optimocha: quick answers
Straight answers, pulled from live WordPress.org data.
Source: WordPress.org
Is Disable Cart Fragments by Optim… free?
Yes. Disable Cart Fragments by Optim… is free to download and use from the official WordPress.org plugin directory.
Is Disable Cart Fragments by Optim… safe to use in 2026?
Disable Cart Fragments by Optim… works, but test it on a staging site before relying on it in 2026. It runs on 10K+ sites, is rated 4.9/5 and was last updated 1 year ago, and scores 51/100 on our health check.
How many websites use Disable Cart Fragments by Optim…?
Disable Cart Fragments by Optim… is active on 10K+ WordPress websites and has been downloaded 141,784 times since it launched in May 2019. It was downloaded 1,264 times in the last 30 days.
Does Disable Cart Fragments by Optim… work with WordPress 7.1?
Disable Cart Fragments by Optim… is officially tested up to WordPress 6.8.13, while the latest release is 7.1.5. It may still work, but try it on a staging site first.
What PHP version does Disable Cart Fragments by Optim… need?
Disable Cart Fragments by Optim… requires PHP 5.6 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.
When was Disable Cart Fragments by Optim… last updated?
The latest version, 2.4.1, was released on September 1, 2025 (1 year ago).
Who makes Disable Cart Fragments by Optim…?
Disable Cart Fragments by Optim… is developed and maintained by Optimocha.
What are the best alternatives to Disable Cart Fragments by Optim…?
The most popular alternatives to Disable Cart Fragments by Optim… are TrimPress (100+ installs).
Powered by PageForge
One template and a spreadsheet. A real page for every search.
PageForge turns each row of a CSV into a WordPress page with its own title, URL, SEO fields and schema, built on the layout you already designed. Free on WordPress.org.
- CSV and XLSX, plus Google Sheets on Professional and Enterprise
- Its own title, URL, SEO fields and schema for every page
- Works with the block editor, Elementor, Divi and Avada
- Free on WordPress.org, no credit card
