Why can the numbers be up to an hour old, and what does Recalculate do?
Results are cached for an hour. Saving a product or an order in WooCommerce clears the cache at once; changes made outside it need the button.
The short answer
Adding up a year of orders takes real work, so the result is cached for an hour. Two things override that:
- saving a product or an order in WooCommerce clears the cache immediately: a new cost, a status change, a refund, a recalculated order. You never wait out a timer after a change made in the admin;
- the Recalculate button clears it on demand, for changes that bypass WooCommerce.
What WooCommerce actually does
WooCommerce gives plugins hooks for exactly this. Saving a cost fires
woocommerce_save_product_cogs_value, and the order-side equivalents fire when an order or an
order item’s cost is written. A plugin that listens to those knows when its cached numbers became
stale, instead of guessing on a schedule. Checked on WooCommerce 11.2.1 on November 3, 2026: a status
change, an order recalculation, and a refund each cleared the cache.
What no hook can tell you is that a status changed in bulk through a database import, or that somebody issued a refund in a payment gateway’s own interface. Those arrive silently, which is why the button exists.
What to do about it
Press Recalculate after:
- importing orders or changing statuses with a tool that writes straight to the database;
- refunds issued outside WordPress, in a gateway dashboard, if they do not reach WooCommerce;
- anything else that makes the report disagree with what you just did.
Pressing it changes nothing in your store; it only recalculates the report. You should not need it after entering costs. If you do, please write to us about it.
How Merchgain reports it
The cache key is built from the filters you actually applied—the date range, the view, the search—plus a version number for the calculation itself. That last part matters: a cache keyed only on the filters would keep serving results from an older version of the arithmetic after an update.
Results are cached as aggregates and single pages of a table, never as one giant serialized table. A megabyte-sized cache entry is silently rejected by some object caches, and the symptom—“the cache does nothing on my host”—is impossible to reproduce anywhere else.
Related answers
Doesn't match what you see in your store? Email us—we read every message. contact@merchgain.com