You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Prepended current access token to the hashes created by cache function to allow different initializations of the class to be able to use the cache without conflict. Added arguments to get data function input vars. Implemented a 'skip_read_from_cache' argument for get_data arguments to skip reading a request from the cache
// Check if this request exists in the cache and if so, return it directly - avoids repeated requests to API in the same page run for same request string
85
85
86
-
if ( isset( self::$request_cache[$api_request_hash] ) ) {
87
-
returnself::$request_cache[$api_request_hash];
88
-
}
86
+
if ( !isset( $args['skip_read_from_cache'] ) ) {
87
+
if ( isset( self::$request_cache[$api_request_hash] ) ) {
88
+
returnself::$request_cache[$api_request_hash];
89
+
}
90
+
}
89
91
90
92
// Request is new - actually perform the request
91
93
@@ -144,7 +146,7 @@ private function __create_ch($api_request) {
0 commit comments