ACF_Internal_Post_Type::flush_post_cache
Deletes all caches for this ACF post.
Метод класса: ACF_Internal_Post_Type{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$ACF_Internal_Post_Type = new ACF_Internal_Post_Type(); $ACF_Internal_Post_Type->flush_post_cache( $post );
- $post(массив) (обязательный)
- The ACF post array.
Список изменений
С версии 6.1 | Введена. |
Код ACF_Internal_Post_Type::flush_post_cache() ACF Internal Post Type::flush post cache ACF 6.4.2
public function flush_post_cache( $post ) { // Delete stored data. acf_get_store( $this->store )->remove( $post['key'] ); // Flush cached post_id for this field group's key. wp_cache_delete( acf_cache_key( $this->cache_key . $post['key'] ), 'acf' ); // Flush cached array of post_ids for collection of field groups. wp_cache_delete( acf_cache_key( $this->cache_key_plural ), 'acf' ); }