clean_site_cache WordPress Action Hook
The clean_site_cache hook is called when the cache for a site is cleaned. This hook is useful for plugins that need to do something when the cache is cleared, such as update a cached value or file.
do_action( 'clean_site_cache', string $id , WP_Site $blog , string $domain_path_key ) #
Fires immediately after a site has been removed from the object cache.
Parameters
- $id
(string)Site ID as a numeric string.
- $blog
(WP_Site)Site object.
- $domain_path_key
(string)md5 hash of domain and path.
Source
File: wp-includes/ms-site.php
Changelog
Version | Description |
---|---|
4.6.0 | Introduced. |