Henrik Gregersen
asked 7 years ago

Hi.
I have issues with cpu cycles at my host, and I have been doing som plugin profiling to figure out which plugin could be the culprit of the situation.
DW Question Answer Pro version 1.07 (the latest released version) is the third slowest plugin.
The reason is that the is_user_logged_in is called multiple times.
For each call to is_user_logged_in wordpress will fetch the current user, thereby adding overhead to the many checks to see if the user is logged in.
Instead of calling this function multiple times, save the result in an instance variable, on init() so you can avoid checking multiple times. 

 

1 Answers
DominicStaff
answered 7 years ago

Thanks for your interesting in your product and your feedback very important to help our team make the product than better. I have sent and noticed about this issue to my technical team, we will check it. 
 

Powered by DW Question & Answer Pro