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.


Top ↑

Source

File: wp-includes/ms-site.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.6.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.