Performance: Decrease CURL lookups to Google to improve backend speed
-
Thanks for this plugin.
I noticed on multiple sites that this plugin is making CURL requests on every page request in the admin area which makes the backend feel sluggish to navigate.
It seems the plugin is looking up a Google API for Google Ad recommendations. Is it necessary to make this request on every page in the dashboard? Is is possible to cache it?
Here is a backtrace:curl_multi_select() google-listings-and-ads/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php:169
tick() google-listings-and-ads/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php:206
execute() google-listings-and-ads/vendor/guzzlehttp/promises/src/Promise.php:251
invokeWaitFn() google-listings-and-ads/vendor/guzzlehttp/promises/src/Promise.php:227
waitIfPending() google-listings-and-ads/vendor/guzzlehttp/promises/src/Promise.php:272
invokeWaitList() google-listings-and-ads/vendor/guzzlehttp/promises/src/Promise.php:229
waitIfPending() google-listings-and-ads/vendor/guzzlehttp/promises/src/Promise.php:69
wait() google-listings-and-ads/vendor/google/gax/src/GapicClientTrait.php:780
getPagedListResponse() google-listings-and-ads/vendor/google/gax/src/GapicClientTrait.php:547
startApiCall() google-listings-and-ads/vendor/googleads/google-ads-php/src/Google/Ads/GoogleAds/V20/Services/Client/GoogleAdsServiceClient.php:1785
search() google-listings-and-ads/src/API/Google/Query/AdsQuery.php:113
query_results() google-listings-and-ads/src/API/Google/Query/Query.php:187
get_results() google-listings-and-ads/src/API/Google/AdsCampaign.php:126
get_campaigns() google-listings-and-ads/src/API/Google/AdsCampaign.php:393
get_highest_spend_campaign() google-listings-and-ads/src/Menu/NotificationManager.php:206
performance_max_ad_strength_count() wp-includes/class-wp-hook.php:324
apply_filters() wp-includes/plugin.php:205
apply_filters() google-listings-and-ads/src/Menu/NotificationManager.php:155
display_aggregated_notification_pill() wp-includes/class-wp-hook.php:324
apply_filters() wp-includes/class-wp-hook.php:348
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
You must be logged in to reply to this topic.