Will clean the post in the cache. Cleaning means delete from the cache of the post. Will call to clean the term object cache associated with the post ID. This function not run if $_wp_suspend_cache_invalidation is not empty. See wp_suspend_cache_invalidation().
$post
Sortie :
@param int|WP_Post $post Post ID or post object to remove from the cache.
// Utilisation de la fonction clean_post_cache
$result = clean_post_cache($post);
if ($result) {
// Votre logique ici
}
Chargement des actualités...