{"id":3108,"date":"2014-02-19T07:53:53","date_gmt":"2014-02-19T07:53:53","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/2014\/02\/19\/heartbeat-ajax-php-usage\/"},"modified":"2025-02-12T17:20:59","modified_gmt":"2025-02-12T22:20:59","slug":"heartbeat-ajax-php-usage","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/website\/heartbeat-ajax-php-usage\/","title":{"rendered":"WordPress Heartbeat and Heavy admin-ajax.php Usage"},"content":{"rendered":"<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"538\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2014\/02\/heartbeat-control-featured-1024x538.png\" alt=\"featured image with text using the heartbeat api disable and modify with heartbeat control\" class=\"wp-image-129333\" srcset=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2014\/02\/heartbeat-control-featured-1024x538.png 1024w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2014\/02\/heartbeat-control-featured-300x158.png 300w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2014\/02\/heartbeat-control-featured-768x403.png 768w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2014\/02\/heartbeat-control-featured.png 1200w\" sizes=\"auto, (min-width: 1360px) 876px, (min-width: 960px) calc(61.58vw + 51px), calc(100vw - 80px)\" \/><\/figure>\n\n\n\n<div id=\"intro\">Introduced in <strong>WordPress 3.6<\/strong> the <a href=\"https:\/\/core.trac.wordpress.org\/ticket\/23216\" target=\"_blank\" rel=\"noopener\"><strong>WordPress Heartbeat<\/strong> API<\/a> allows WordPress to communicate between the web-browser and the server. It allows for improved user session management, revision tracking, and auto saving.\n<p class=\"alert alert-info\">This article contains steps that should be undertaken by a WordPress expert. If you\u2019re interested in optimizing your WordPress site without any extra effort we suggest a <a href=\"https:\/\/www.inmotionhosting.com\/wordpress-hosting\">WordPress Hosting<\/a> package.<\/p>\n<p>The WordPress Heartbeat API uses <strong>\/wp-admin\/admin-ajax.php<\/strong>\u00a0to run AJAX calls from the web-browser. Which in theory sounds awesome, as WordPress can keep track of what\u2019s going on in the dashboard.<\/p>\n<p>However this can also start sending excessive requests to <strong>admin-ajax.php<\/strong> which can lead to high CPU usage. Anytime a web-browser is left open on a page using the Heartbeat API, this could potentially be an issue.<\/p><\/div>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"#heartbeat-in-action\">WordPress Heartbeat API in Action<\/a><\/li>\n\n\n\n<li><a href=\"#disable-heartbeat\">Disable WordPress Heartbeat API<\/a>\n<ul class=\"wp-block-list\">\n<li><a href=\"#install\">Installing the Heartbeat Control plugin<\/a><\/li>\n\n\n\n<li><a href=\"#configure\">Configuring the Heartbeat Control plugin<\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"heartbeat-in-action\">WordPress Heartbeat API in Action<\/h2>\n\n\n\n<p>Something handled by the WordPress Heartbeat API is the main WordPress admin dashboard page itself. If all you did was <a href=\"\/support\/edu\/wordpress\/logging-into-wordpress-dashboard\/\" target=\"_blank\" rel=\"noopener\">login to WordPress<\/a> and then minimized that window and started working on something else, you\u2019d see requests for <strong>admin-ajax.php<\/strong> in your site\u2019s access logs.<\/p>\n<p>At <span style=\"color: #00e000; background-color: black; padding: 1px 5px 1px 5px;\">[00:29:30]<\/span> I logged into the dashboard, and you can see the initial <span style=\"color: #00e000; background-color: black; padding: 1px 5px 1px 5px;\">GET \/wp-admin\/index.php<\/span> request.<\/p>\n<p>Then at <span style=\"color: #ff1212; background-color: black; padding: 1px 5px 1px 5px;\">[00:30:31]<\/span> the WordPress Heartbeat API sends a <span style=\"color: #ff1212; background-color: black; padding: 1px 5px 1px 5px;\">POST \/wp-admin\/admin-ajax.php<\/span>\u00a0Heartbeat request.<\/p>\n<p>With the WordPress dashboard in focus, a Heartbeat request should be spaced the max of 60 seconds that the API allows for. If the dashboard is out of focus, the Heartbeat requests space out to 120 seconds between them.<\/p>\n<p class=\"cli\"><span style=\"color: #00e000;\">00:29:30 \u201cGET \/wp-admin\/index.php<\/span> \u201chttps:\/\/example.com\/wp-admin\/index.php\u201d<br><span style=\"color: #ff1212;\">00:30:31 \u201cPOST \/wp-admin\/admin-ajax.php<\/span> \u201chttps:\/\/example.com\/wp-admin\/index.php\u201d<br><span style=\"color: #ff1212;\">00:32:03 \u201cPOST \/wp-admin\/admin-ajax.php<\/span> \u201chttps:\/\/example.com\/wp-admin\/index.php\u201d<br><span style=\"color: #ff1212;\">00:33:03 \u201cPOST \/wp-admin\/admin-ajax.php<\/span> \u201chttps:\/\/example.com\/wp-admin\/index.php\u201d<br><span style=\"color: #ff1212;\">00:34:03 \u201cPOST \/wp-admin\/admin-ajax.php<\/span> \u201chttps:\/\/example.com\/wp-admin\/index.php\u201d<br><span style=\"color: #ff1212;\">00:35:04 \u201cPOST \/wp-admin\/admin-ajax.php<\/span> \u201chttps:\/\/example.com\/wp-admin\/index.php\u201d<br><span style=\"color: #ff1212;\">00:36:04 \u201cPOST \/wp-admin\/admin-ajax.php<\/span> \u201chttps:\/\/example.com\/wp-admin\/index.php\u201d<br><span style=\"color: #ff1212;\">00:37:04 \u201cPOST \/wp-admin\/admin-ajax.php<\/span> \u201chttps:\/\/example.com\/wp-admin\/index.php\u201d<br><span style=\"color: #ff1212;\">00:38:04 \u201cPOST \/wp-admin\/admin-ajax.php<\/span> \u201chttps:\/\/example.com\/wp-admin\/index.php\u201d<br><span style=\"color: #ff1212;\">00:39:04 \u201cPOST \/wp-admin\/admin-ajax.php<\/span> \u201chttps:\/\/example.com\/wp-admin\/index.php\u201d<br><span style=\"color: #ff1212;\">00:40:04 \u201cPOST \/wp-admin\/admin-ajax.php<\/span> \u201chttps:\/\/example.com\/wp-admin\/index.php\u201d<br><span style=\"color: #ff1212;\">00:42:04 \u201cPOST \/wp-admin\/admin-ajax.php<\/span> \u201chttps:\/\/example.com\/wp-admin\/index.php\u201d<br><span style=\"color: #ff1212;\">00:44:04 \u201cPOST \/wp-admin\/admin-ajax.php<\/span> \u201chttps:\/\/example.com\/wp-admin\/index.php\u201d<br><span style=\"color: #ff1212;\">00:46:04 \u201cPOST \/wp-admin\/admin-ajax.php<\/span> \u201chttps:\/\/example.com\/wp-admin\/index.php\u201d<br><span style=\"color: #ff1212;\">00:47:04 \u201cPOST \/wp-admin\/admin-ajax.php<\/span> \u201chttps:\/\/example.com\/wp-admin\/index.php\u201d<br><span style=\"color: #ff1212;\">00:48:04 \u201cPOST \/wp-admin\/admin-ajax.php<\/span> \u201chttps:\/\/example.com\/wp-admin\/index.php\u201d<br><span style=\"color: #ff1212;\">00:49:04 \u201cPOST \/wp-admin\/admin-ajax.php<\/span> \u201chttps:\/\/example.com\/wp-admin\/index.php\u201d<br><span style=\"color: #ff1212;\">00:50:04 \u201cPOST \/wp-admin\/admin-ajax.php<\/span> \u201chttps:\/\/example.com\/wp-admin\/index.php\u201d<br><span style=\"color: #ff1212;\">00:51:04 \u201cPOST \/wp-admin\/admin-ajax.php<\/span> \u201chttps:\/\/example.com\/wp-admin\/index.php\u201d<br><span style=\"color: #ff1212;\">00:53:04 \u201cPOST \/wp-admin\/admin-ajax.php<\/span> \u201chttps:\/\/example.com\/wp-admin\/index.php\u201d<br><span style=\"color: #ff1212;\">00:55:08 \u201cPOST \/wp-admin\/admin-ajax.php<\/span> \u201chttps:\/\/example.com\/wp-admin\/index.php\u201d<br><span style=\"color: #ff1212;\">00:57:04 \u201cPOST \/wp-admin\/admin-ajax.php<\/span> \u201chttps:\/\/example.com\/wp-admin\/index.php\u201d<br><span style=\"color: #ff1212;\">00:59:04 \u201cPOST \/wp-admin\/admin-ajax.php<\/span> \u201chttps:\/\/example.com\/wp-admin\/index.php\u201d<br><span style=\"color: #ff1212;\">01:01:05 \u201cPOST \/wp-admin\/admin-ajax.php<\/span> \u201chttps:\/\/example.com\/wp-admin\/index.php\u201d<br><span style=\"color: #ff1212;\">01:03:05 \u201cPOST \/wp-admin\/admin-ajax.php<\/span> \u201chttps:\/\/example.com\/wp-admin\/index.php\u201d<\/p>\n<p>Now each of those POST requests had a corresponding PHP script execution on the server using CPU time:<\/p>\n<p class=\"cli\">php-cgi 0.26 secs Wed Feb 19 00:29<br>php-cgi 0.26 secs Wed Feb 19 00:30<br>php-cgi 0.23 secs Wed Feb 19 00:32<br>php-cgi 0.20 secs Wed Feb 19 00:33<br>php-cgi 0.22 secs Wed Feb 19 00:34<br>php-cgi 0.24 secs Wed Feb 19 00:35<br>php-cgi 0.20 secs Wed Feb 19 00:36<br>php-cgi 0.23 secs Wed Feb 19 00:37<br>php-cgi 0.23 secs Wed Feb 19 00:38<br>php-cgi 0.26 secs Wed Feb 19 00:39<br>php-cgi 0.22 secs Wed Feb 19 00:40<br>php-cgi 0.23 secs Wed Feb 19 00:42<br>php-cgi 0.22 secs Wed Feb 19 00:44<br>php-cgi 0.23 secs Wed Feb 19 00:46<br>php-cgi 0.25 secs Wed Feb 19 00:47<br>php-cgi 0.27 secs Wed Feb 19 00:48<br>php-cgi 0.23 secs Wed Feb 19 00:49<br>php-cgi 0.22 secs Wed Feb 19 00:50<br>php-cgi 0.21 secs Wed Feb 19 00:51<br>php-cgi 0.21 secs Wed Feb 19 00:53<br>php-cgi 0.21 secs Wed Feb 19 00:55<br>php-cgi 0.24 secs Wed Feb 19 00:57<br>php-cgi 0.25 secs Wed Feb 19 00:59<br>php-cgi 0.22 secs Wed Feb 19 01:01<br>php-cgi 0.23 secs Wed Feb 19 01:03<\/p>\n<p>Having our dashboard open for over a half hour, generated <strong>25<\/strong> PHP script executions. With a total usage of <strong>5.77<\/strong> CPU seconds. Not terrible, but not great either, since we used up CPU essentially checking for nothing to happen.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"disable-heartbeat\">Disable WordPress Heartbeat API<\/h2>\n\n\n\n<p>If you notice that you are having an excessive amount of <strong>admin-ajax.php<\/strong> requests, the WordPress Heartbeat API can be disabled to prevent this type of activity from happening automatically.<\/p>\n\n\n\n<p><b>NOTE: <\/b>By default, WordPress uses the Heartbeat API to manage things such as post locking so only one admin can edit a post at once, it\u2019s also used for auto saving. Going forward the API could be used more and more by WordPress developers to handle certain tasks, so keep this in mind if you choose to disable it.<\/p>\n\n\n\n<p>For instructions on using the latest version of Heartbeat Control, please see our new guide by clicking <a title=\"Click here to navigate to our guide and learn how to use the latest version of Heartbeat Control\" href=\"\/support\/edu\/wordpress\/install-and-configure-heartbeat-control-for-wordpress\/\" target=\"_blank\" rel=\"noopener\">here<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"install\">Installing the Heartbeat Control plugin<\/h3>\n\n\n\n<ol class=\"wp-block-list article_list\">\n<li>First, <a href=\"\/support\/edu\/wordpress\/logging-into-wordpress-dashboard\/\">log into your WordPress admin dashboard<\/a>.<\/li>\n\n\n\n<li><span style=\"font-size: revert; color: initial;\">Within your dashboard, hover over <\/span><strong style=\"font-size: revert; color: initial;\">Plugins<\/strong><span style=\"font-size: revert; color: initial;\"> and click on <\/span><strong style=\"font-size: revert; color: initial;\">Add New<\/strong><span style=\"font-size: revert; color: initial;\">.<\/span><\/li>\n\n\n\n<li><span style=\"font-size: revert; color: initial;\">On this page, enter <\/span><strong style=\"font-size: revert; color: initial;\">Heartbeat Control<\/strong><span style=\"font-size: revert; color: initial;\"> into the search box At the top and press the <\/span><strong style=\"font-size: revert; color: initial;\">Enter<\/strong><span style=\"font-size: revert; color: initial;\"> key on your keyboard to perform the search.<\/span><\/li>\n\n\n\n<li><span style=\"color: initial; font-size: revert;\">As you have searched for the exact name of the plugin, it should be the first result that appears. To install it, click on the <\/span><strong style=\"color: initial; font-size: revert;\">Install Now<\/strong><span style=\"color: initial; font-size: revert;\"> button.<\/span><\/li>\n\n\n\n<li><span style=\"font-size: revert; color: initial;\">WordPress will now handle the download and installation of the Heartbeat Control plugin. Of course, be sure to click on <\/span><strong style=\"font-size: revert; color: initial;\">Activate Plugin<\/strong><span style=\"font-size: revert; color: initial;\"> when complete.<\/span><span style=\"color: initial; font-size: revert;\"><\/span> <\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"configure\">Configuring the Heartbeat Control plugin<\/h3>\n\n\n\n<ol class=\"wp-block-list article_list\">\n<li>Now that you have the Heartbeat Control plugin installed, you will need to configure its settings. To access the settings page, hover over\u00a0<strong>Tools<\/strong>\u00a0on the left side menu bar and click on Heartbeat Control.<br><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"477\" class=\"wp-image-13299\" style=\"width: 750px;\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2014\/02\/wordpress_heartbeat-control-5.png\" alt=\"\" srcset=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2014\/02\/wordpress_heartbeat-control-5.png 1478w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2014\/02\/wordpress_heartbeat-control-5-300x191.png 300w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2014\/02\/wordpress_heartbeat-control-5-768x488.png 768w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2014\/02\/wordpress_heartbeat-control-5-1024x651.png 1024w\" sizes=\"auto, (min-width: 1360px) 876px, (min-width: 960px) calc(61.58vw + 51px), calc(100vw - 80px)\" \/><\/li>\n\n\n\n<li>Once on the settings page, you will notice 2 different dropdown boxes. The first box will allow you to disable the WordPress heartbeat on the entire site or on specific locations. Depending on your needs, you may disable the WordPress heartbeat completely, or only allow it on specific locations such as on the post edit page.<br><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"89\" class=\"wp-image-13300\" style=\"width: 750px;\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2014\/02\/wordpress_heartbeat-control-6.png\" alt=\"\" srcset=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2014\/02\/wordpress_heartbeat-control-6.png 456w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2014\/02\/wordpress_heartbeat-control-6-300x36.png 300w\" sizes=\"auto, (min-width: 1360px) 876px, (min-width: 960px) calc(61.58vw + 51px), calc(100vw - 80px)\" \/><\/li>\n\n\n\n<li>The second box allows you to determine how often the WordPress heartbeat API will make a request. For example, on post edit pages it makes a POST request every 15 seconds. This can be modified within the\u00a0<strong>heartbeat frequency<\/strong>\u00a0dropdown to delay it up to 60 seconds between requests which would cut down server resources caused by admin-ajax requests by 75%.<br><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"137\" class=\"wp-image-13301\" style=\"width: 750px;\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2014\/02\/wordpress_heartbeat-control-7.png\" alt=\"\" srcset=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2014\/02\/wordpress_heartbeat-control-7.png 345w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2014\/02\/wordpress_heartbeat-control-7-300x55.png 300w\" sizes=\"auto, (min-width: 1360px) 876px, (min-width: 960px) calc(61.58vw + 51px), calc(100vw - 80px)\" \/><\/li>\n\n\n\n<li>Once your changes are made, click on\u00a0<strong>Save Changes<\/strong>.<\/li>\n<\/ol>\n\n\n\n<p>Congratulations! You have now modified the behavior of the WordPress heartbeat API to use less resources on the server. If you have any questions about this plugin, or would like to request a feature, leave a comment below in which I will be happy to answer it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduced in WordPress 3.6 the WordPress Heartbeat API allows WordPress to communicate between the web-browser and the server. It allows for improved user session management, revision tracking, and auto saving. This article contains steps that should be undertaken by a WordPress expert. If you&#8217;re interested in optimizing your WordPress site without any extra effort we<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/support\/website\/heartbeat-ajax-php-usage\/\"> Read More ><\/a><\/p>\n","protected":false},"author":12,"featured_media":129333,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4288,4325,56],"tags":[],"class_list":["post-3108","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-website","category-wordpress-hosting","category-wordpress"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>WordPress Heartbeat and Heavy admin-ajax.php Usage | InMotion Hosting<\/title>\n<meta name=\"description\" content=\"WordPress 3.6 introduced a new Heartbeat API which uses AJAX and the admin-ajax.php script. It can cause heavy CPU usage, and it can be disabled.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.inmotionhosting.com\/support\/website\/heartbeat-ajax-php-usage\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"WordPress Heartbeat and Heavy admin-ajax.php Usage | InMotion Hosting\" \/>\n<meta property=\"og:description\" content=\"WordPress 3.6 introduced a new Heartbeat API which uses AJAX and the admin-ajax.php script. It can cause heavy CPU usage, and it can be disabled.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/website\/heartbeat-ajax-php-usage\/\" \/>\n<meta property=\"og:site_name\" content=\"InMotion Hosting Support Center\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inmotionhosting\/\" \/>\n<meta property=\"article:published_time\" content=\"2014-02-19T07:53:53+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-02-12T22:20:59+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2014\/02\/heartbeat-control-featured.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Jeff Matson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:site\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Matson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/heartbeat-ajax-php-usage\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/heartbeat-ajax-php-usage\/\"},\"author\":{\"name\":\"Jeff Matson\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/83776252b196c020e4352a3796e5642b\"},\"headline\":\"WordPress Heartbeat and Heavy admin-ajax.php Usage\",\"datePublished\":\"2014-02-19T07:53:53+00:00\",\"dateModified\":\"2025-02-12T22:20:59+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/heartbeat-ajax-php-usage\/\"},\"wordCount\":1109,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/heartbeat-ajax-php-usage\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2014\/02\/heartbeat-control-featured.png\",\"articleSection\":[\"Website\",\"WordPress Hosting\",\"WordPress Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/website\/heartbeat-ajax-php-usage\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/heartbeat-ajax-php-usage\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/website\/heartbeat-ajax-php-usage\/\",\"name\":\"WordPress Heartbeat and Heavy admin-ajax.php Usage | InMotion Hosting\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/heartbeat-ajax-php-usage\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/heartbeat-ajax-php-usage\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2014\/02\/heartbeat-control-featured.png\",\"datePublished\":\"2014-02-19T07:53:53+00:00\",\"dateModified\":\"2025-02-12T22:20:59+00:00\",\"description\":\"WordPress 3.6 introduced a new Heartbeat API which uses AJAX and the admin-ajax.php script. It can cause heavy CPU usage, and it can be disabled.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/heartbeat-ajax-php-usage\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/website\/heartbeat-ajax-php-usage\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/heartbeat-ajax-php-usage\/#primaryimage\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2014\/02\/heartbeat-control-featured.png\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2014\/02\/heartbeat-control-featured.png\",\"width\":1200,\"height\":630,\"caption\":\"featured image with text using the heartbeat api disable and modify with heartbeat control\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/heartbeat-ajax-php-usage\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.inmotionhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"WordPress Heartbeat and Heavy admin-ajax.php Usage\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"name\":\"InMotion Hosting Support Center\",\"description\":\"Web Hosting Support &amp; Tutorials\",\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\",\"name\":\"InMotion Hosting\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"width\":696,\"height\":696,\"caption\":\"InMotion Hosting\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/inmotionhosting\/\",\"https:\/\/x.com\/InMotionHosting\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/83776252b196c020e4352a3796e5642b\",\"name\":\"Jeff Matson\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/author\/jeffma\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"WordPress Heartbeat and Heavy admin-ajax.php Usage | InMotion Hosting","description":"WordPress 3.6 introduced a new Heartbeat API which uses AJAX and the admin-ajax.php script. It can cause heavy CPU usage, and it can be disabled.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.inmotionhosting.com\/support\/website\/heartbeat-ajax-php-usage\/","og_locale":"en_US","og_type":"article","og_title":"WordPress Heartbeat and Heavy admin-ajax.php Usage | InMotion Hosting","og_description":"WordPress 3.6 introduced a new Heartbeat API which uses AJAX and the admin-ajax.php script. It can cause heavy CPU usage, and it can be disabled.","og_url":"https:\/\/www.inmotionhosting.com\/support\/website\/heartbeat-ajax-php-usage\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2014-02-19T07:53:53+00:00","article_modified_time":"2025-02-12T22:20:59+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2014\/02\/heartbeat-control-featured.png","type":"image\/png"}],"author":"Jeff Matson","twitter_card":"summary_large_image","twitter_creator":"@InMotionHosting","twitter_site":"@InMotionHosting","twitter_misc":{"Written by":"Jeff Matson","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/heartbeat-ajax-php-usage\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/heartbeat-ajax-php-usage\/"},"author":{"name":"Jeff Matson","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/83776252b196c020e4352a3796e5642b"},"headline":"WordPress Heartbeat and Heavy admin-ajax.php Usage","datePublished":"2014-02-19T07:53:53+00:00","dateModified":"2025-02-12T22:20:59+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/heartbeat-ajax-php-usage\/"},"wordCount":1109,"commentCount":0,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/heartbeat-ajax-php-usage\/#primaryimage"},"thumbnailUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2014\/02\/heartbeat-control-featured.png","articleSection":["Website","WordPress Hosting","WordPress Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/website\/heartbeat-ajax-php-usage\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/heartbeat-ajax-php-usage\/","url":"https:\/\/www.inmotionhosting.com\/support\/website\/heartbeat-ajax-php-usage\/","name":"WordPress Heartbeat and Heavy admin-ajax.php Usage | InMotion Hosting","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/heartbeat-ajax-php-usage\/#primaryimage"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/heartbeat-ajax-php-usage\/#primaryimage"},"thumbnailUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2014\/02\/heartbeat-control-featured.png","datePublished":"2014-02-19T07:53:53+00:00","dateModified":"2025-02-12T22:20:59+00:00","description":"WordPress 3.6 introduced a new Heartbeat API which uses AJAX and the admin-ajax.php script. It can cause heavy CPU usage, and it can be disabled.","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/heartbeat-ajax-php-usage\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/website\/heartbeat-ajax-php-usage\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/heartbeat-ajax-php-usage\/#primaryimage","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2014\/02\/heartbeat-control-featured.png","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2014\/02\/heartbeat-control-featured.png","width":1200,"height":630,"caption":"featured image with text using the heartbeat api disable and modify with heartbeat control"},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/heartbeat-ajax-php-usage\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"WordPress Heartbeat and Heavy admin-ajax.php Usage"}]},{"@type":"WebSite","@id":"https:\/\/www.inmotionhosting.com\/support\/#website","url":"https:\/\/www.inmotionhosting.com\/support\/","name":"InMotion Hosting Support Center","description":"Web Hosting Support &amp; Tutorials","publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.inmotionhosting.com\/support\/#organization","name":"InMotion Hosting","url":"https:\/\/www.inmotionhosting.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","width":696,"height":696,"caption":"InMotion Hosting"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/inmotionhosting\/","https:\/\/x.com\/InMotionHosting"]},{"@type":"Person","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/83776252b196c020e4352a3796e5642b","name":"Jeff Matson","url":"https:\/\/www.inmotionhosting.com\/support\/author\/jeffma\/"}]}},"jetpack_featured_media_url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2014\/02\/heartbeat-control-featured.png","jetpack_sharing_enabled":true,"primary_category":{"id":4288,"name":"Website","slug":"website","link":"https:\/\/www.inmotionhosting.com\/support\/website\/"},"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/3108","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/comments?post=3108"}],"version-history":[{"count":3,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/3108\/revisions"}],"predecessor-version":[{"id":129334,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/3108\/revisions\/129334"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media\/129333"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=3108"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=3108"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=3108"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}