WP_Super_Cache_Rest_Update_Settings::new_direct_page()protectedWPSCache 1.0

add an entry to the cached direct pages list.

Method of the class: WP_Super_Cache_Rest_Update_Settings{}

No Hooks.

Return

null. Nothing (null).

Usage

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

WP_Super_Cache_Rest_Update_Settings::new_direct_page() code WPSCache 1.12.0

protected function new_direct_page( $value ) {
	global $cached_direct_pages;

	if ( isset( $_POST[ 'direct_pages' ] ) == false ) {
		$_POST[ 'direct_pages' ] = $cached_direct_pages;
	}

	$_POST[ 'new_direct_page' ] = $value;
	wpsc_update_direct_pages();
}