WordPress at a glance
function is not described

WP_Super_Cache_Rest_Update_Settings::restore_default_settings() protected WPSCache 1.0

Delete the plugin configuration file and restore the sample one.

{} 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->restore_default_settings( $parameters );

Code of WP_Super_Cache_Rest_Update_Settings::restore_default_settings() WPSCache 1.7.1

<?php
protected function restore_default_settings( $parameters ) {
	global $wp_cache_config_file, $wp_cache_config_file_sample;

	if ( file_exists( $wp_cache_config_file_sample ) ) {
		copy( $wp_cache_config_file_sample, $wp_cache_config_file );
		$cache_page_secret = md5( date( 'H:i:s' ) . mt_rand() );
		wp_cache_setting( 'cache_page_secret', $cache_page_secret );

		if ( function_exists( "opcache_invalidate" ) ) {
			@opcache_invalidate( $wp_cache_config_file );
		}
	}
	wpsc_set_default_gc( true );

}