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.
1000
Sortie :
@param string $version Version of the transient to remove.
// 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;
}
Chargement des actualités...