Description: |
We are experiencing significant performance issues with the site, including frequent crashes and slow load times, particularly on pages that involve our custom "AISummary" plugin. The plugin is not pulling information as expected, but it still causes system instability. We suspect the issues are related to unoptimized API calls (especially OpenAI and Vimeo) and excessive database load due to inefficient queries. The crashes seem to be linked to memory limits, query lockups, and PHP-FPM max children warnings. Additionally, the site's timing issues, such as slow TTFB and poor Core Web Vitals, might be connected. Please review and optimize the plugin code to ensure more efficient handling of API calls and database queries, implement proper error handling and retry logic for API interactions, and resolve PHP-FPM bottlenecks. The goal is to reduce server resource usage, prevent crashes, and improve the overall speed and stability of the website. This should be completed within the next 3 days for a first round of fixes. |