reset_oc_version()WPSCache 1.0

No Hooks.

Return

null. Nothing.

Usage

reset_oc_version( $version );
$version **
-
Default: 1

Code of reset_oc_version() WPSCache 1.8

function reset_oc_version( $version = 1 ) {
	if ( $version == 1 ) {
		$version = mt_rand();
	}
	wp_cache_set(
		'wp_cache_oc_key',
		array(
			'ts'  => time(),
			'key' => $version,
		)
	);

	return $version;
}