Enhancement: Caching of get_ai_assistance_feature function #37936
Labels
[Extension] AI Assistant
[Focus] Performance
[Plugin] Jetpack
Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/
[Type] Enhancement
Changes to an existing feature — removing, adding, or changing parts of it
Impacted plugin
Jetpack
What
Expand the AI Assistance feature Cache Timeout
How
The cache time on get_ai_asistance_feature function is too short and contributes to a large number of public-api requests.
Please review the timeout (currently 10 seconds) and increase to a reasonable value.
In addition non 200 responses need to be cached to minimize public-api calls to WP.com
see line 423 of lib/class-jetpack-ai-helper.php. These should possibly have longer timeout lengths to ensure to minimize traffic if WP.com is unable to respond to requests.
The text was updated successfully, but these errors were encountered: