WordPress at a glance
function is not described

WP_Super_Cache_Rest_Update_Settings::save_preload_settings() protected WPSCache 1.0

Runs at the end and saves the preload settings.

{} It's a method of the class: WP_Super_Cache_Rest_Update_Settings{}

No Hooks.

Return

Null. Nothing.

Usage

// protected - for code of main (parent) or child class
$result = $this->save_preload_settings();

Code of WP_Super_Cache_Rest_Update_Settings::save_preload_settings() WPSCache 1.7.1

<?php
protected function save_preload_settings() {
	if ( ! isset( $_POST['_preload_setting'] ) || true !== $_POST['_preload_setting'] ) {
		return;
	}

	$_POST['action'] = 'preload';

	$all_preload_settings = array(
		'preload_interval'     => 'wp_cache_preload_interval',
		'preload_on'           => 'wp_cache_preload_on',
		'preload_taxonomies'   => 'wp_cache_preload_taxonomies',
		'preload_email_volume' => 'wp_cache_preload_email_volume',
		'preload_posts'        => 'wp_cache_preload_posts',
	);

	foreach ( $all_preload_settings as $key => $original ) {
		if ( ! isset( $_POST[ $key ] ) ) {
			$_POST[ $original ] = $GLOBALS[ $original ];
		} else {
			$_POST[ $original ] = $_POST[ $key ];
			if ( $key !== 'preload_interval' && ( $_POST[ $key ] === 0 || $_POST[ $key ] === false ) ) {
				unset( $_POST[ $original ] );
			}

		}
	}

	wpsc_preload_settings();
}