WC_Post_Data::flush_object_meta_cache()public staticWC 1.0

Flush meta cache for CRUD objects on direct update.

Method of the class: WC_Post_Data{}

No Hooks.

Return

null. Nothing (null).

Usage

$result = WC_Post_Data::flush_object_meta_cache( $meta_id, $object_id, $meta_key, $meta_value );
$meta_id(int) (required)
Meta ID.
$object_id(int) (required)
Object ID.
$meta_key(string) (required)
Meta key.
$meta_value(mixed) (required)
Meta value.

WC_Post_Data::flush_object_meta_cache() code WC 8.6.1

public static function flush_object_meta_cache( $meta_id, $object_id, $meta_key, $meta_value ) {
	WC_Cache_Helper::invalidate_cache_group( 'object_' . $object_id );
}