We’re using cache files that consist of a combination of simple PHP code and HTML. These cache files are stored with a PHP filename.
Some files exceed 400 KB, and I’ve noticed that Google App Engine, specifically with PHP 8.2 runtime, exhibits significantly slow loading times—more than 60,000 ms. When using PHP 7.4, the response time is only 300 ms.
Are there any limitations in this new PHP version or within the Google App Engine?
2
Answers
The observed slow loading times on Google App Engine with PHP 8.2 for cache files exceeding 400 KB may be due to potential performance differences in the runtime. Consider optimizing your code and file structure for better compatibility.
Additionally, verify if PHP 8.2 has specific limitations on Google App Engine that could impact response times. Exploring these factors and optimizing code could help address the performance issue.
Probably, it’s the same problem of this question: Laravel App on Google App Engine Hangs with Responses Larger Than 450KB
If not hangs, become very slow.
Google has an issue open: https://issuetracker.google.com/issues/297140655?pli=1
Current workaround is to use PHP 8.1.