$migration_status ) ); } // Only proceed to activate Page Cache in Jetpack Boost // if the user clicked the admin notice. if ( $migration_status !== 'notice' ) { return; } // Check if Boost has Page Cache already enabled. $status = new Status( Page_Cache::get_slug() ); if ( $status->get() === true ) { return; } set_transient( 'jb_boost_migration_complete', true, 7 * DAY_IN_SECONDS ); $status->set( true ); } add_action( 'admin_init', __NAMESPACE__ . '\migrate_from_super_cache' );