Warmup / Preload

mamba_preload_concurrency
Control the parallelism of warmup fetches. Increasing this value can speed up warmup but also increases server load.

add_filter('mamba_preload_concurrency', fn() => 8);

mamba_warmup_exclude_outofstock
Exclude out-of-stock products from warmup, focusing cache priming on purchasable items.

add_filter('mamba_warmup_exclude_outofstock', '__return_true');

mamba_warmup_max_urls
Set a maximum number of URLs warmed per cycle.

add_filter('mamba_warmup_max_urls', fn() => 1000);

mamba_warmup_max_variants_per_url
Limit how many variants (device, language, currency, country) are warmed for each URL.

add_filter('mamba_warmup_max_variants_per_url', fn() => 2);

mamba_warmup_max_variants
Set a global cap on total variant expansion. Helpful for large sites.

add_filter('mamba_warmup_max_variants', fn() => 2);

mamba_warmup_max_attribute_taxonomies
Limit the number of attribute taxonomies used when generating filtered catalog URLs.

add_filter('mamba_warmup_max_attribute_taxonomies', fn() => 2);

mamba_warmup_attribute_terms_per_tax
Limit the number of terms considered per attribute taxonomy for filtered URLs.

add_filter('mamba_warmup_attribute_terms_per_tax', fn() => 1);

mamba_warmup_attribute_taxonomies
Override which attribute taxonomies are used to build filtered catalog URLs.

add_filter('mamba_warmup_attribute_taxonomies', fn() => ['pa_color', 'pa_size']);

mamba_warmup_store_api_urls
Add or remove Store API URLs included in warmup (e.g., popular product lists).

add_filter('mamba_warmup_store_api_urls', function ($urls, $restUrl) {
    $urls[] = $restUrl . '/products?featured=true';
    return $urls;
}, 10, 2);

mamba_warmup_filtered_urls
Add or remove filtered category/tag URLs (e.g., orderby, per_page variations).

add_filter('mamba_warmup_filtered_urls', function ($urls, $baseUrl) {
    $urls[] = $baseUrl . '?orderby=price';
    return $urls;
}, 10, 2);

mamba_warmup_devices
Select which device variants (e.g., desktop, mobile) are warmed.

add_filter('mamba_warmup_devices', fn() => ['desktop', 'mobile']);

mamba_warmup_countries
Select which country variants to warm, for geolocation-based sites.

add_filter('mamba_warmup_countries', fn() => ['US', 'GB', 'DE']);

mamba_warmup_max_country_variants
Caps how many country variants are warmed per job to prevent variant explosion when geolocation is enabled.

add_filter('mamba_warmup_max_country_variants', fn() => 2);

mamba_warmup_primary_variants
Overrides the detected “primary” variants (currency, language, country, tax display) used to limit expansion. Useful to enforce a canonical combination for warmup.

add_filter('mamba_warmup_primary_variants', function ($variants) {
    $variants['currency']    = 'USD';
    $variants['language']    = 'en';
    $variants['country']     = 'US';
    $variants['tax_display'] = 'incl'; // incl|excl
    return $variants;
});

mamba_warmup_max_execution_time
Sets a time budget (in seconds) for a single warmup job. The job will stop once this limit is reached to avoid long-running processes.

add_filter('mamba_warmup_max_execution_time', fn() => 300); // 5 minutes

mamba_warmup_ssl_verify
Toggles SSL certificate verification for warmup HTTP requests. Secure by default; disable only for controlled debugging.

add_filter('mamba_warmup_ssl_verify', '__return_true'); // or '__return_false' for debugging

mamba_warmup_ssl_verify_host
Controls the cURL host verification level for warmup requests. Keep strict verification (2) in production.

add_filter('mamba_warmup_ssl_verify_host', fn() => 2); // 2 strict, 0 disable (debug only)

Copyright 2025 - Mamba


Mamba mascot