Reuse function instead of hardcoding for consistency.

This commit is contained in:
vedanshujain 2022-03-29 15:44:59 +05:30
parent a4c83de142
commit 7186c80c5e
1 changed files with 1 additions and 1 deletions

View File

@ -640,7 +640,7 @@ abstract class WC_Data {
}
}
if ( ! empty( $this->cache_group ) ) {
$cache_key = WC_Cache_Helper::get_cache_prefix( $this->cache_group ) . WC_Cache_Helper::get_cache_prefix( 'object_' . $this->get_id() ) . 'object_meta_' . $this->get_id();
$cache_key = self::generate_meta_cache_key( $this->get_id(), $this->cache_group );
wp_cache_delete( $cache_key, $this->cache_group );
}
}