Where exactly is your bottleneck right now? Database queries? I mean, where those >300ms go, foreach request or just some of them?
155 karma · joined May 13, 2018
Two examples I can give in my case are the good old rsnapshot, and CSF firewall
If nothing is shown at error logs, then you should try setting "error_reporting" to E_ALL and you should see something at logs after executing your PHP code.
Not invented here syndrome, always create a class, always put a class in its own file, premature optimization blablah, don't use goto, this and that is bad practice in that language, don't optimize until you need it (but you later don't have time to profile, or don't really want to...)
So it's not just about following advice, real world hits just as in development estimations...