Proxy_Cache::get_data_from_cache( string $cache_key, string $cache_group )

Summary

Gets cached data.


Parameters

$cache_key

(string) (Required) A hash built from the request URL.

$cache_group

(string) (Required) The request's cache group.


Return

(mixed) Data or false if unsuccessful.


Source

File: src/BigCommerce/Proxy/Proxy_Cache.php

	public function get_data_from_cache( $cache_key, $cache_group ) {
		if ( wp_using_ext_object_cache() ) {
			return wp_cache_get( $cache_key, $cache_group );
		} else {
			return get_transient( $cache_key . $cache_group );
		}
	}


User Contributed Notes

You must log in before being able to contribute a note or feedback.