Welcome Guest, Not a member yet? Register   Sign In
.env file and performance
#1

Hello awesome developers!

I am a fullstack developer and i was developing an admin panel using vue.js + Laravel. There was this issue i faced with the .env file.
When multiple ajax requests are sent to the server at once, and each request is reading a value from .env file, some requests are get failed in Laravel. 

As an example, in the process of response generation in my particular request, there are few occurrences of .env variable readings. I have found that in Laravel, each source code occurence for .env file in the controller is reading the .env file again and again and this causes to fail some requests sent to the server. 

So i am switching from Laravel to Codeignitter due to it's perfomace over Laravel.
and i haven't faced the above issue yet in my developments.

I need to know that does Codeignitter is also reading the .env file again and again per each occurence in the controller ?
If so, What is the best practice to workaround this issue ?
Reply


Messages In This Thread
.env file and performance - by ak.kavinda - 02-21-2021, 12:49 AM
RE: .env file and performance - by kenjis - 02-21-2021, 04:21 AM
RE: .env file and performance - by ak.kavinda - 02-21-2021, 10:29 AM
RE: .env file and performance - by kenjis - 02-21-2021, 04:13 PM
RE: .env file and performance - by iRedds - 02-21-2021, 04:26 PM



Theme © iAndrew 2016 - Forum software by © MyBB