As per my knowledge I know that PHP file can not serve two clients at same time, so in WordPress index.php will be the file handling all requests, so how it is all the way efficient and faster? is there any logical clustering? or any programming techniques in PHP that WordPress follows? I have a website built on index.php where all requests comes to index.php and seems it lags in performance for fewer requests, dont know how it is going well for WordPress or to some other CMS?
Leave a Reply
You must be logged in to post a comment.
There is no built-in limit such as “one client per file”. You can customize your limits on your webserver and/or your fastCGI pool if you’re using one. It will be more accurate to think in terms of “one php thread per request”, but even that could be misleading depending on your scenario.
WordPress’s index.php is just a router that in turn picks a theme template and renders it replacing each variable according to the request. No magic there, just basic templating logic.
You index.php lag might be caused by several reasons, including but not limited to:
temporarily block page rendering.