Plugin hangs application solved
-
Hi guys,
I’ve tried using this plugin a few times (for GDPR) but have ended up removing it straight away as it intermittently kills/hangs the application. I decided to have a closer look at the code and report my findings.
There is an AJAX request to /wp-admin/admin-ajax.php?_fs_blog_admin=true which calls the action “AjaxRefresh” – the method AjaxRefresh is located in classes\Views\AuditLog.php.
I immediately noticed a usleep() on L308 which is called in a do/while loop (see https://imgur.com/XLpqZEh). This snippet, on occasions (I’ve not looked into why) sleeps for a considerable length of time, enough for PHP to timeout (30 sec default). If you’re clicking around the different Audit Log pages or have multiple tabs open etc your PHP workers will be stuck in this sleep and very quickly your application will grind to a halt.
I haven’t spent enough time investigating this issue to give suggestions on a fix as I don’t fully understand what this snippet of code is doing but this does need to be rectified. I’ve noticed a few of the negative reviews for this plugin also had similar issues so hopefully this will prompt a fix.
Kind regards,
Mike
- The topic ‘Plugin hangs application solved’ is closed to new replies.