HUSKY - Product Filter for WooCommerce

woof_turbo_mode_products_limit

Filters the maximum number of products to process during turbo mode cache generation, setting a limit to prevent memory or timeout issues.

Parameters

$limit (int) — The maximum number of products to index (default: 15000)

Source File

ext/turbo_mode/index.php:277

Code Example

add_filter('woof_turbo_mode_products_limit', function($limit) {
    // Increase limit for large catalogs
    return 50000;
});

Usage Notes

  • Part of the turbo mode cache generation process that pre-indexes product data.
  • If the processed count exceeds this limit, the cache generation loop stops.
  • The limit prevents infinite loops and server resource exhaustion on large product catalogs.