update_post_caches


update_post_caches ( $posts, $post_type = 'post', $update_term_cache = true, $update_meta_cache = true )

Parameters:
  • (array) $posts Array of Post objects
  • (string) $post_type Optional. Post type. Default 'post'.
  • (bool) $update_term_cache Optional. Whether to update the term cache. Default true.
  • (bool) $update_meta_cache Optional. Whether to update the meta cache. Default true.
Defined at:

Description

Call major cache updating functions for list of Post objects.

Related Functions

update_post_cache, update_postmeta_cache, update_site_cache, update_user_caches, update_meta_cache

Top Google Results

User discussions

wpseek mobile