WAF runCron slowing site down
-
Noticed yesterday morning that a few sites I work on have been running really slow. One site in particular is taking 12.5 seconds to load. Took a few hours to try and track down the problem, and I have arrived at a function within wordfence.
wordfence/waf/bootstrap.php line 444 $event->fire(); in runCron().
If I comment out this line as well as the reschedule function on line 445, the site takes 0.5 – 0.7 seconds to load.
This behaviour is consistent and repeatable, if those lines are commented back in then the site takes 12 seconds to load, when removed it takes less than 1 second.
We see exactly the same behaviour on a number of sites, this is just the worst example.
We have tried completely removing Wordfence from the site and a fresh install after a clean with the Wordfence Assistant plugin, and the behaviour is the same.
Is there a reason why the site would slow down like this, or why these calls are being executed on the main UI thread?
Thanks
- The topic ‘WAF runCron slowing site down’ is closed to new replies.