WP_Super_Cache_Rest_Update_Settings::new_direct_pageprotectedWPSCache 1.0

add an entry to the cached direct pages list.

Method of the class: WP_Super_Cache_Rest_Update_Settings{}

No Hooks.

Returns

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 3.0.3

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