wpsc_notify_migration_to_boost()WPSCache 1.0

Notify Jetpack Boost that Boost Cache will be used instead of WP Super Cache.

No Hooks.

Return

null. Nothing (null).

Usage

wpsc_notify_migration_to_boost( $source );
$source(string) (required)
The source of the migration: 'notice', 'banner', 'try_button'.

wpsc_notify_migration_to_boost() code WPSCache 1.12.4

function wpsc_notify_migration_to_boost( $source ) {
	if ( ! in_array( $source, array( 'notice', 'banner', 'try_button' ), true ) ) {
		return;
	}
	set_transient( 'jb_cache_moved_to_boost', $source, WEEK_IN_SECONDS );
}