App Plataform enable OPcache and JIT - PHP 8

Hello Everybody,

Trying to improve the performance of my application (made in Laravel 8 and PHP 8), already tried to enable OPcache and JIT but had no success. I created a .user.ini file in the public directory with the following code:



Do I need to add something else or do you have any advice to improve performance?

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

This warning shows on almost every request.

Does anyone have an idea of what can be the problem?

[app] [2021-11-25 16:50:52] [25-Nov-2021 16:50:51 UTC] PHP Warning:  Zend OPcache can't be temporary enabled (it may be only disabled till the end of request) in Unknown on line 0