woocommerce_delete_version_transients_limit

FILTER woocommerce\includes\class-wc-cache-helper.php (ligne 338) github
When the transient version increases, this is used to remove all past transients to avoid filling the DB. Note; this only works on transients appended with the transient version, and when object caching is not being used.

Paramètres

Entrée :
1000
Sortie :
@param string $version Version of the transient to remove.

Utilisation

// Modifier la valeur avec le filtre 'woocommerce_delete_version_transients_limit'
add_filter('woocommerce_delete_version_transients_limit', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre(1000) {
    // Modifier la valeur
    return 1000;
}

Actualités

Chargement des actualités...