I was under the impression that FastCGI allowed you to kinda load in your web app once, and then you just "provide" FastCGI with some function, like myHandleHTTPRequest($url)
, that would then be called whenever a request came. This way you'd get much better performance as your app is ready in memory all the time, right?
But I'm starting to understand, that this is not the case. Or am I mistaken?
It seems to me, that PHP is being loaded by FastCGI, ok, and this gives some improvement, but then my app is still being reloaded on every request.
I'd like to load my app (or read 'framework') once (and then reload say every 500 requests or so.) Can I do that?
Edit: This question has been rephrased into this one: Custom PHP FastCGI interface