Skip to content

Commit

Permalink
Merge branch 'develop' into release/4.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
felipeelia authored Apr 14, 2023
2 parents ee8d8a5 + 90359be commit fb14608
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/classes/Feature/Autosuggest/Autosuggest.php
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ public function intercept_search_request( $response, $query = [], $args = [], $f
// But only fire this if we have object caching as otherwise this comes with a performance penalty.
// If we do not have object caching we cache only one value for 5 minutes in a transient.
if ( wp_using_ext_object_cache() ) {
$cache_key = md5( wp_json_encode( $query['url'] ) . wp_json_encode( $args ) );
$cache_key = md5( wp_json_encode( $query['url'] ) . wp_json_encode( $args['body'] ) );
$request = wp_cache_get( $cache_key, 'ep_autosuggest' );
if ( false === $request ) {
$request = wp_remote_request( $query['url'], $args );
Expand Down

0 comments on commit fb14608

Please sign in to comment.