Skip to content

Performance Monitoring

Dino Discounts is built for speed. The performance monitoring tools let you verify this on your own store.

The engine creates a “fingerprint” of the current cart state (items, quantities, customer). If the cart hasn’t changed since the last calculation, the cached result is reused immediately — no recalculation needed.

Discount definitions and zone data are cached in WordPress transients. This avoids database queries on every page load.

Discounts are only evaluated when a cart exists. Product pages, category pages, and the homepage don’t trigger the discount engine unless product-specific pricing is being displayed.

Enable Performance Tracking in the Settings tab to see timing data:

  • The engine writes a hidden HTML comment to the page footer with:
    • Total evaluation time (milliseconds)
    • Number of discounts evaluated
    • Cache hit/miss ratio
    • Memory usage

View this by looking at View Page Source in your browser.

On a typical WooCommerce store:

  • Discount evaluation: ≤1ms on a 10-item cart; ≤15ms on a 50-item cart with up to 500 active discounts (measured April 2026 on WP 6 / WC / PHP 8.3 with 40+ plugins active)
  • Cache hit rate: > 90% on repeat page loads
  • Memory overhead: < 1MB additional

If you see evaluation times significantly higher than this, it usually indicates a large number of complex targeting conditions. Consider simplifying targeting or reducing the number of active discounts.