acf_flush_post_type_cache()ACF 6.1

Deletes all caches for the provided ACF post type.

No Hooks.

Returns

null. Nothing (null).

Usage

acf_flush_post_type_cache( $post_type );
$post_type(array) (required)
The ACF post type array.

Changelog

Since 6.1 Introduced.

acf_flush_post_type_cache() code ACF 6.8.8

function acf_flush_post_type_cache( array $post_type ) {
	acf_flush_internal_post_type_cache( $post_type, 'acf-post-type' );
}