session_start() with long wall time.
-
Hello,
I’ve taken over development of a site that uses Ninja Firewall, and was asked to improve performance of the site. On profiling with xhprof I’ve witnessed a strange behavior. If multiple requests came into the site in a short succession there was a ramp up for session_start(), which was only triggered by nfw.
Upon opening a post in the editor, easily 20 requests and more are fired in short succession, which results in quite a delay in the later requests. While the first ones were fast as expected, in the later ones I’ve seen a ramp up of session_start() to up to 8 seconds, while the total execution time was just 9s.
I’ve benchmarked Ninja Firewall against other WAFs and none of them had this ramp up.
To my question:
Is there any Webserver configuration I can do, in order to prevent this behavior. Or maybe could you guys replace the use of session_start() with something else, since barely any software in the WordPress eco system utilizes session_start() and when I started doing WordPress Plugins, I was told it is considered a bad practice in WordPress.
Thanks in advance.
- You must be logged in to reply to this topic.