clean_site_cache action-hook . WP 4.6.0
Fires immediately after a site has been removed from the object cache.
Usage
add_action( 'clean_site_cache', 'action_function_name_6570', 10, 3 ); function action_function_name_6570( $id, $blog, $domain_path_key ){ // action... }
- $id(int)
- Blog ID.
- $blog(WP_Site)
- Site object.
- $domain_path_key(string)
- md5 hash of domain and path.
Changelog
Since 4.6.0 | Introduced. |
Where the hook is called
clean_site_cache
wp-includes/ms-site.php 1027
do_action( 'clean_site_cache', $blog_id, $blog, $domain_path_key );