wpseek.com
WordPress开发者和主题制作者的搜索引擎



wp_maybe_clean_new_site_cache_on_update › WordPress Function

Since5.1.0
已弃用n/a
wp_maybe_clean_new_site_cache_on_update ( $new_site, $old_site )
参数: (2)
  • (WP_Site) $new_site The site object after the update.
    Required: Yes
  • (WP_Site) $old_site The site object prior to the update.
    Required: Yes
定义在:
文档:

Cleans the necessary caches after specific site data has been updated.



源码

function wp_maybe_clean_new_site_cache_on_update( $new_site, $old_site ) {
	if ( $old_site->domain !== $new_site->domain || $old_site->path !== $new_site->path ) {
		clean_blog_cache( $new_site );
	}
}