The WPFolks app is out on iPhone and Android. Free, no ads. Download on the App Store Get it on Google Play
Skip to main content
Login Join

CartFlush – Auto Clear WooCommerce Cart for Inactive Users

CartFlush – Auto Clear WooCommerce Cart for Inactive Users banner
Active installs
70+
3 ratings
4.3
Last updated
6 months ago
Version
2.3.2
Tested up to
WP 7.0.9

About this plugin

CartFlush helps you automatically clear inactive WooCommerce carts, keeping your store clean, fast, and optimized.

Instead of relying on a single timeout, CartFlush gives you full control over cart expiration from one settings screen under WooCommerce. You can define different timeout rules based on customer type, user roles, products, categories, and tags, then add exclusions for carts that should never be cleared automatically.

Whether you want faster cart turnover, better session management, or cleaner abandoned cart handling, CartFlush gives you the tools to do it properly.

Live Demo

Try Live Demo (No Setup Required)

Why Use CartFlush?

  • Prevent stale and abandoned carts from piling up
  • Improve WooCommerce session performance
  • Apply smarter rules based on customers and products
  • Manage rules visually from the WooCommerce settings page
  • Import or export rules for fast setup and migration

Key Features

Default Cart Timeout

Set a global inactivity timeout in minutes. If no other rules apply, this value determines when a cart is cleared.

Visual Rule Builder

Create and edit cart timeout rules directly from the CartFlush settings page under WooCommerce. No CSV import is required for day-to-day management.

Customer Type Rules

Define separate timeouts for:

  • Guest customers
  • Logged-in customers

Role-Based Timeout Rules

Define custom cart expiration times for specific user roles.

Examples:

  • Customers – 30 minutes
  • Subscribers – 60 minutes
  • Wholesale users – 120 minutes

Product, Category, and Tag Rules

Apply specific timeout values based on:

  • Product ID
  • Product category
  • Product tag

This makes it easy to create shorter or longer expiration windows for special items, campaigns, or collections.

Smart Timeout Logic

When multiple timeout rules apply, CartFlush automatically uses the shortest valid timeout.

Exclusion Rules

Prevent cart clearing entirely for matching carts using:

  • Excluded roles
  • Excluded products
  • Excluded categories
  • Excluded tags

CSV Import for Bulk Rules

Bulk import rule data with CSV when that is faster than manual entry.

Supported CSV types:

  • customer_type
  • role
  • product_rule
  • category
  • tag
  • excluded_role
  • excluded_product
  • excluded_category
  • excluded_tag

CartFlush also includes a downloadable sample CSV from the settings page to help merchants get started faster.

JSON Import and Export

Export the full CartFlush configuration as JSON for backup or migration, then import it on another store when needed.

WooCommerce Menu Integration

The CartFlush settings page is available directly under the WooCommerce admin menu for quicker access.

Duplicate Rule Warnings

CartFlush warns admins when duplicate rules are saved so they can clean up overlapping entries more easily.

Lightweight and Efficient

CartFlush focuses only on inactivity tracking, rule evaluation, and cart clearing without adding unnecessary overhead.

Translation Ready

Includes the cartflush text domain for localization.

Clean Uninstall

When the plugin is deleted, CartFlush removes its stored settings automatically.

How It Works

  1. A customer adds items to the cart.
  2. The inactivity timer begins.
  3. CartFlush checks the default timeout and any matching timeout rules.
  4. The shortest valid timeout is selected.
  5. If an exclusion rule matches, cart clearing is skipped.
  6. The cart is cleared after the final timeout is reached.

Supported Import Formats

CSV headers:

type,key,timeout_minutes

Supported types:

  • customer_type
  • role
  • product_rule
  • category
  • tag
  • excluded_role
  • excluded_product
  • excluded_category
  • excluded_tag

Example rows:

customer_type,guest,20
role,customer,30
product_rule,321,10
category,flash-sale,15
tag,seasonal,25
excluded_role,wholesale_customer,
excluded_product,123,
excluded_category,high-ticket,
excluded_tag,fragile,<h3>Does this work for guest users and logged-in users?</h3>

Yes. CartFlush uses WooCommerce sessions, so both are supported.

How is the timeout calculated?

The plugin starts with the default timeout, then checks matching customer type, role, product, category, and tag rules. The shortest valid timeout is applied.

What if a cart contains excluded items?

CartFlush skips clearing the cart entirely.

Can I manage rules without importing CSV?

Yes. Rules can be added and edited directly from the CartFlush settings page.

Can I migrate settings between sites?

Yes. Export settings as JSON and import them on another site.

Does uninstall remove all data?

Yes. All plugin options are deleted during uninstall.

Screenshots

Analytics

Live from WordPress.org, refreshed daily. Last refresh Dec 1, 2026.

  • Passes 2 of 3 health checks below.
2/3

Health checks

What a careful site owner looks at before installing.

  • Actively maintained Last release 6 months ago
  • Tested with current WordPress Tested up to 7.0.9
  • Support questions answered Nothing open in the last two months
  • Well rated Only 3 ratings so far
Active installs
70+ +17% from 60+ a month ago
This week
54 downloads +1.9% vs the week before
Last 30 days
206 downloads 7 a day, typically
All time
2.3k downloads On WordPress.org since 2025
Downloads per week Every update counts as a download on WordPress.org, so release weeks spike.
Latest week
54
Typical week
18
Peak
463 Week of Mar 17
View as table
WeekDownloads
Week of Nov 2454
Week of Nov 1753
Week of Nov 1046
Week of Nov 337
Week of Oct 2736
Week of Oct 2032
Week of Oct 1339
Week of Oct 627
Week of Sep 2936
Week of Sep 2227
Week of Sep 1526
Week of Sep 825
Week of Sep 120
Week of Aug 2528
Week of Aug 1824
Week of Aug 1118
Week of Aug 420
Week of Jul 2817
Week of Jul 2115
Week of Jul 1415
Week of Jul 712
Week of Jun 3017
Week of Jun 2316
Week of Jun 1615
Week of Jun 929
Week of Jun 228
Week of May 2683
Week of May 1914
Week of May 1210
Week of May 527
Week of Apr 2822
Week of Apr 2115
Week of Apr 1417
Week of Apr 721
Week of Mar 3186
Week of Mar 24366
Week of Mar 17463
Week of Mar 1012
Week of Mar 38
Week of Feb 2410
Week of Feb 1711
Week of Feb 1012
Week of Feb 315
Week of Jan 276
Week of Jan 2010
Week of Jan 1310
Week of Jan 63
Week of Dec 30, 20254
Week of Dec 23, 202512
Week of Dec 16, 20255
Week of Dec 9, 20258
Week of Dec 2, 20259
Where it stands Rank among the plugins WPFolks tracks every day.

Not ranked yet. Install, download and rating ranks cover the 5,000 most popular plugins on WordPress.org, and Trending needs about 100 downloads on a typical day.

Active installs over time Recorded by WPFolks every day since Oct 14, 2026.

Reviews

4.3 3 ratings on WordPress.org
  • 5 2
  • 4 0
  • 3 1
  • 2 0
  • 1 0

From folks on WPFolks

No reviews from folks yet. Used it? Be the first to say how it went.

Log in to leave a review

Latest on WordPress.org

Proudly supported by