wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_maybe_clean_new_site_cache_on_update › WordPress Function

Da5.1.0
Deprecaton/a
wp_maybe_clean_new_site_cache_on_update ( $new_site, $old_site )
Parametri: (2)
  • (WP_Site) $new_site The site object after the update.
    Richiesto:
  • (WP_Site) $old_site The site object prior to the update.
    Richiesto:
Definito a:
Codex:

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



Sorgenti

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 );
	}
}