Hi All,
I use register_shutdown_function to register a function that then gets run
when the script finishes executing. It worked great before, but sometime
last week on my development server all my sites started going very slowly.
It is still running fine on the production server (thankfully).
Nothing was changed. In fact, I was out of town that week, and the dev
server was powered off.
I did a little investigation, trying to locate the source of the slowdown,
and eventually I narrowed it down to the line:
register_shutdown_function('siteShutdown');
Commenting out that line made things run perfectly again (generates within
20-80 ms, depending on the page size). Uncomment it, and the page takes 3-4
seconds to generate. It does not generate piecemeal, either; it is blank
for several seconds, then in blink, the entire page arrives.
Has anyone got any ideas? What could cause this, and how could it suddenly
start happening, without me making any changes?
Sincerely,
-Josh