![]() If a visitor’s sees comments right served up to them, they may be more likely to read them.Load Disqus only on onClick event – That means, user have to click on Load Comment button to load comments.Solution-2. How to Disable wp-cron.php via. All comments will be imported to your Database within 10 minutes. Now after this whenever you want to sync Disqus comments with WordPress Database then just check above box and save settings. Uncheck box for Disable automated comment importing.Wp_schedule_single_event($ts, 'dsq_sync_forum') $next_scheduled = wp_next_scheduled('dsq_sync_forum') Replace it with this code block and save file.Search for line 514 wp_schedule_single_event($ts, 'dsq_sync_forum').Choose Plugin Disqus Comment System from combo box.How to fix Disqus High CPU usage issue caused by dsq_sync_forum Sync Job? Solution-1. When you have normal traffic like ~2000 active users at at time then Disqus’s sync job also executes ~2000 times at given time and that’s not good.ġ Sync job = 1 Cron job call. On Crunchify, we do have Disqus Sync enabled by default. I googled it and found couple of very interested threads about higher CPU usage and Disqus. Now I left with only my last doubt about plugin Disqus. We do have local WordPress setting using MAMP and after disabling and enabling those plugins we didn’t notice any page load time or higher CPU issue. Hmm… those updates were from very reliable WordPress contributor and after spending significant amount of time we also ruled out this possibility too. With ~16 millions calls per month we didn’t see any degradation on site loading metrics. In fact – page loads in near half a second. Precaution Step-1įirst we eliminated higher traffic pattern as a cause because we use WP Super Cache WordPress plugin and it handles this situation very well. In order to fix this higher WordPress CPU, Memory and Entry process usage we started looking at all possibilities. Point here is => ~228 entry processes are toooo much. There is no way you could have survived with Bluehost or Hostgator hosting in this case. Seriously? ~228 entry process at a time? Bluehost and Hostgator by default allows maximum 25 entry process at a time compare to Squidix allows 400. ![]() Once we looked at our cPanel stats then we noticed the same high number of entry processes. Why these much Memory and CPU usage? Checkout below ~50% CPU usage and ~4GB Memory usage graph. Let’s get started – Check Point-1: Memory and CPU usage Recently theme upgrade and custom modification which includes Custom Post Type and more.Crunchify is a mature site and started getting very higher traffic.There might be multiple reasons for higher CPU and Memory usage: ![]() But recently we noticed higher CPU and Memory usage on our server. We are hosted at Squidix semi dedicated hosting and it’s pretty reliable.
0 Comments
Leave a Reply. |