get_oc_version()WPSCache 1.0

No Hooks.

Return

null. Nothing.

Usage

get_oc_version();

Code of get_oc_version() WPSCache 1.8

function get_oc_version() {
	$wp_cache_oc_key = wp_cache_get( 'wp_cache_oc_key' );
	if ( ! $wp_cache_oc_key ) {
		$wp_cache_oc_key['key'] = reset_oc_version();
	} elseif ( $wp_cache_oc_key['ts'] < time() - 600 ) {
		wp_cache_set(
			'wp_cache_oc_key',
			array(
				'ts'  => time(),
				'key' => $wp_cache_oc_key['key'],
			)
		);
	}
	return $wp_cache_oc_key['key'];
}