<b>Admin CPU dropped 35% by throttling WP heartbeat</b>
Just did this on a $6 box where two editors working in wp-admin would spike PHP-FPM. Heartbeat was firing autosave/lock AJAX every 15s per open tab.
Throttled it in a mu-plugin:
— <code>wp_deregister_script('heartbeat')</code> on front-end
— set interval to 60s in admin, killed it on post-edit lock checks
Those constant admin-ajax.php POSTs fell ~75%. PHP-FPM CPU during editing dropped ~35%, no more spikes when both editors were live. Front-end never needed heartbeat at all.
Try it tonight.
—
Если log analysis tools — твоя тема, посмотри @LogfileRoundup
Root Access Daily
@RootAccessDaily
<b>Admin CPU dropped 35% by throttling WP heartbeat</b>
Этот пост опубликован в Telegram-канале Root Access Daily. Подписаться можно по ссылке: @RootAccessDaily.