A while ago, I noticed that when administrators log in to the control panel, the page loads very slowly, taking 28 seconds and sometimes even resulting in a timeout error.
After troubleshooting step by step, I discovered that the issue is caused by $this->upgrade_service->latestVersion() in app/Http/RequestHandlers/ControlPanel.php.
Perhaps because my server is located in China, calling the private functionfetchLatestVersion()
to check for the latest version is very slow. Is there a better solution?