clean_site_cache хук-событие . WP 4.6.0
Fires immediately after a site has been removed from the object cache.
Использование
add_action( 'clean_site_cache', 'action_function_name_3167', 10, 3 ); function action_function_name_3167( $id, $blog, $domain_path_key ){ // action... }
- $id(число)
- Blog ID.
- $blog(WP_Site)
- Site object.
- $domain_path_key(строка)
- md5 hash of domain and path.
Список изменений
С версии 4.6.0 | Введена. |
Где вызывается хук
clean_site_cache
wp-includes/ms-site.php 1027
do_action( 'clean_site_cache', $blog_id, $blog, $domain_path_key );