WC_Session_Handler::get_cache_prefixprivateWC 1.0

Gets a cache prefix. This is used in session names so the entire cache can be invalidated with 1 function call.

Method of the class: WC_Session_Handler{}

No Hooks.

Returns

String.

Usage

// private - for code of main (parent) class only
$result = $this->get_cache_prefix();

WC_Session_Handler::get_cache_prefix() code WC 9.9.3

private function get_cache_prefix() {
	return WC_Cache_Helper::get_cache_prefix( WC_SESSION_CACHE_GROUP );
}