Maybe this line is causing the issue? As we are trying to run function everytime wp is loaded. Can you suggest a better approach here?
add_action( 'wp_loaded', array($this, 'sprr_active_subscription_list') );
I used this and it seems to be OK.
add_action( 'renewal_reminders', array($this, 'sprr_active_subscription_list') );
Hi Pranav,
It is infact strange to me as you can see in the following image, the load on CPU substantially increased as soon as I enabled this plugin. You can also see that there are two peaks which occurred during plugin activation and deactivation respectively.
CPU load
Do you think there’s any CPU intensive task that is happening in this plugin?
Regards,
Nivesh