I have a script that builds my webpage in one string ($content) and then echo it to the user.
My script looks like this:
$time1= microtime(true);
$conten
As it is not possible to tell you the reason without knowing the body of your create_content() function I suggest you to add more "time logging" functions directly inside this function. Making the included code fewer and fewer you will finally find the line that is causing the lag. Knowing the specific line will help you to understand the problem (database, machine load, connection problems to external services, ...).