That’s weird, I’ve never seen anything like that and don’t really know how to explain what you’re seeing.
PHP’s sleep() actually idles the CPU so that shouldn’t be blocking anything, and the only other thing I can come up with is the database. Initializing the MODX class will connect to the database and that’ll usually stay open until the request is closed. Other requests for the site will then also try to connect to the database.
Again I’ve not actually seen anything like this before so I’m grasping at straws, but perhaps something on the database server is preventing more than one client connection at a time and the sleeping thread is causing that to halt?
This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting “+ New Topic”.