Title: Heartbeat Control
Author: WP Media
Published: <strong>2014 年 11 月 16 日</strong>
Last modified: 2023 年 8 月 31 日

---

搜尋外掛

![](https://ps.w.org/heartbeat-control/assets/banner-772x250.png?rev=2952275)

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://ps.w.org/heartbeat-control/assets/icon-256x256.png?rev=2952275)

# Heartbeat Control

 由 [WP Media](https://profiles.wordpress.org/wp_media/) 開發

[下載](https://downloads.wordpress.org/plugin/heartbeat-control.2.0.1.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/heartbeat-control/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/heartbeat-control/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/heartbeat-control/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/heartbeat-control/#developers)

 [技術支援](https://wordpress.org/support/plugin/heartbeat-control/)

## 外掛說明

由 WP Rocket 開發的 Heartbeat Control 外掛能讓網站管理員幾個點擊就完成對 WordPress
Heartbeat API 頻率的管理。

WordPress Heartbeat API 是一項很不錯的功能，它為網站管理員登入 WordPress 管理面板
時，提供了伺服器及瀏覽器間的即時通訊。它使用了 `/wp-admin/admin-ajax.php` 這個檔案
以執行瀏覽器呼叫的 AJAX 要求。依照預設，在內容編輯頁面中每隔 15 秒便會傳送一次 AJAX
要求，而在控制台頁面為每隔 60 秒便會傳送一次 AJAX 要求。

這項功能的確很有幫助，但是如果網站管理員長期開啟 WordPress 管理區域 (例如要撰寫或
編輯文章)，便會累積來自 Heartbeat API 的 AJAX 要求，並產生 CPU 高使用率，這會造成
伺服器效能問題，甚至主機商會暫停你的主機代管帳號。

使用由 WP Rocket 開發的 Heartbeat Control，網站管理員便能輕鬆設定限制或完全停止 
WordPress Heartbeat API 的活動。網站管理員也可以為指定位置新增規則，例如控制台、
網站前端或內容編輯器。

如需進一步了解 WordPress 效能最佳化及網站加速的方式，請加入 [WP Rocket Facebook 社團](https://www.facebook.com/groups/WPRocketUsers/)。

#### 相關外掛

 * [WP Rocket](https://wp-rocket.me/?utm_source=wordpress.org&utm_medium=referral&utm_campaign=HeartBeatPlugin)：
   最優秀的快取外掛，它能為任何 WordPress 提供加速功能。
 * [Lazy Load by WP Rocket](https://tw.wordpress.org/plugins/rocket-lazy-load/)：
   最優秀的延遲載入外掛，它能降低 HTTP 要求次數，並改善網站載入時間。
 * [Imagify](https://tw.wordpress.org/plugins/imagify/)：最優秀的圖片最佳化外掛，
   能讓圖片以最佳畫質及檔案大小加速網站。

## 螢幕擷圖

 * [[
 * Heartbeat API 設定
 * [[
 * 精確修改 Heartbeat API 使用頻率

## 安裝方式

 1. 將由外掛壓縮檔解壓縮所得的 `heartbeat-control` 資料夾及其所包含的全部檔案上傳至`/
    wp-content/plugins/` 目錄。
 2. 在 [外掛] 頁面啟用 Heartbeat Control 外掛。
 3. 在 [外掛]→[控管 Heartbeat API] 能變更外掛全部設定。

## 常見問題集

### 如何變更外掛設定？

前往 [外掛]→[控管 Heartbeat API] 便能變更外掛全部設定。

### 為什麼會需要變更 WordPress 預設的活動訊號間隔？

如果長時間保持 WordPress 網站管理員的執行狀態，尤其在撰寫或編輯文章時，重複的 POST
要求會導致資源的高使用率。為避免產生這個狀況，修改或停用 WordPress 的活動訊號間隔
可以降低網站伺服器的資源使用率。

### 發現外掛的安全性程式碼錯誤，該在何處回報？

使用者可以透過 [Patchstack 漏洞揭露計畫](https://patchstack.com/database/vdp/heartbeat-control)
回報在外掛原始程式碼中發現的任何安全性程式碼錯誤。Patchstack 團隊會協助使用者進行
驗證及 CVE 指派，並負責通知外掛的開發者。

## 使用者評論

![](https://secure.gravatar.com/avatar/4b937a18032b8808593293c95dd330659df1782259c87a64b03197f4abc5dd1f?
s=60&d=retro&r=g)

### 󠀁[No save new article](https://wordpress.org/support/topic/no-save-new-article/)󠁿

 [Pierre236](https://profiles.wordpress.org/pierreto/) 2024 年 6 月 17 日

Hi, I started to use your extension after the end of Clearfy plugin. And it does
the job, but I have problem 3 times with new article not saved. When I work on article,
I often open many tabs and sometime, my browser, Firefox, block and I need to close
it and reopen it. Normaly, I can find a backup of the article on wordpress, but 
3 times recently, the article had completely disappeared. It’s terrible when you
spend time on an article, sometimes more than an hour, to then discover that there’s
nothing left, that all the work has to be redone. I deactivated heartbeat on the
dashboard and on the site, and kept it only for the editor. I’ve changed the editor
to 20, I imagine it’s 20 seconds, but will that be enough? When I’m working on a
new article now, I save it when I think of it, but sometimes I forget, like today.
What else can I do to make sure that the plugin doesn’t prevent Wordpress from saving
automatically? Thanks a lot!

![](https://secure.gravatar.com/avatar/362d3266bbe3c200945de236721a5b861367daee0bf14166060db17fe23bcb09?
s=60&d=retro&r=g)

### 󠀁[Finally fixed my 8-10sec delay in page load times](https://wordpress.org/support/topic/finally-fixed-my-8-10sec-delay-in-page-load-times/)󠁿

 [invisionary](https://profiles.wordpress.org/invisionary/) 2024 年 2 月 8 日

I was suffering from 8-10 second delays between page loads. I tried everything I
could think of to track it down, and neither tech support at Elegant Themes (DIVI
Theme) nor my web hosting company Inmotion Hosting could find anything wrong as 
to the cause. Finally, I thought I’d try this this plug-in on a whim to see if the
Heartbeat API was the cause. It was. I simply disabled the Heartbeat API on the 
front end using the Heartbeat Control plug-in and my pages were loading how they
should without page caching in a fraction of a second. Later applied it to disable
the back-end admin dashboard Heartbeat API and set the post editor heartbeat to 
62 seconds (as many things seem to run on the exact minute). Simple to use interface,
quick and convenient. This is an essential plug for WordPress.

![](https://secure.gravatar.com/avatar/c2f5de5e4441703ae49e2131c44ce9fe0e5568b859af597587445eceba910d1a?
s=60&d=retro&r=g)

### 󠀁[used its premium version but had to install this version to minimize the load](https://wordpress.org/support/topic/used-its-premium-version-but-had-to-install-this-version-to-minimize-the-load/)󠁿

 [Web davo](https://profiles.wordpress.org/abidalli/) 2023 年 12 月 11 日

i used wp rocket premium plugin for my site and had to install this as the load 
on my site was not optimizing, that means the feature in pro plugin is useless?

![](https://secure.gravatar.com/avatar/fe6531a917bd95dd3b9b94193a499e9af6916847c86f7848d7b69a0be06c693a?
s=60&d=retro&r=g)

### 󠀁[Plugin file size 4.2mbs for just controlling heartbeat api](https://wordpress.org/support/topic/plugin-file-size-4-2mbs-for-just-controlling-heartbeat-api/)󠁿

 [–](https://profiles.wordpress.org/jorcus/) 2023 年 9 月 2 日

Plugin file size 4.2mbs for just controlling heartbeat api. Overengineer

![](https://secure.gravatar.com/avatar/49482704900eb3615bef739a30f414f538e0b90f670f903e0cda9798fb778193?
s=60&d=retro&r=g)

### 󠀁[Thank you](https://wordpress.org/support/topic/thank-you-3397/)󠁿

 [lakenetwork](https://profiles.wordpress.org/lakenetwork/) 2023 年 7 月 13 日

Much appreciate this plugin which allows me to have more control over optimizing
my site – and for free.

![](https://secure.gravatar.com/avatar/c85956a90d355d15c45a4308425380509fe2a006fb679c681e46f55a999221a0?
s=60&d=retro&r=g)

### 󠀁[Dangerous](https://wordpress.org/support/topic/dangerous-21/)󠁿

 [Anonymous User 20443167](https://profiles.wordpress.org/anonymized-20443167/) 
2023 年 1 月 5 日

Ancient plugin, untested, produce errors as soon as you activate it: The plugin 
generated 630 characters of unexpected output during activation Also has errors 
on it’s dashboard menu, trying to ping wordpress.org resulting in 404 error. Old
bad, dangerous. Remove it from your site and WP repository.

 [ 閱讀全部 69 則使用者評論 ](https://wordpress.org/support/plugin/heartbeat-control/reviews/)

## 參與者及開發者

以下人員參與了開源軟體〈Heartbeat Control〉的開發相關工作。

參與者

 *   [ WP Media ](https://profiles.wordpress.org/wp_media/)
 *   [ WP Rocket ](https://profiles.wordpress.org/wp_rocket/)

〈Heartbeat Control〉外掛目前已有 11 個本地化語言版本。 感謝[全部譯者](https://translate.wordpress.org/projects/wp-plugins/heartbeat-control/contributors)
為這個外掛做出的貢獻。

[將〈Heartbeat Control〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/heartbeat-control)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/heartbeat-control/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/heartbeat-control/)，或透過 
[RSS](https://plugins.trac.wordpress.org/log/heartbeat-control/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/heartbeat-control/)。

## 變更記錄

#### 2.0.1

 * Fix PHP warnings & deprecated notices

#### 2.0 – 2019/11/04

 * Revamp the settings page.

#### 1.2.5

 * Fixed issue caused by previous version deployment.
 * Added hbc_disable_notice hook to force dismissal of update notices.
 * Additional documentation added.
 * Minor standards adjustments.

#### 1.2.4

 * Updated CMB2 to 2.4.2.
 * Bumpted “tested up to” version.
 * Fixed a bug that occurred if no locations were selected.
 * Minor standards adjustments.

#### 1.2.3

 * Added composer.json and composer.lock that were missing.
 * Updated CMB2 to 2.3
 * Translation files generated.
 * Language path and text domain added to plugin header.
 * Bumped compatible WP version.

#### 1.2.2

 * Minor bugfixes.

#### 1.2.1

 * Fixed issue that would cause some users to not see the modification slider.

#### 1.2

 * Added conditional logic.
 * Multiple actions can now be performed.
 * Scripts are bundled and minified.
 * Changes to settings structure.
 * Miscellaneous bugfixes.

#### 1.1.3

 * Readme updates.

#### 1.1.2

 * Bugfixes.
 * Resolves potential fatal error mistakenly pushed to 1.1.

#### 1.1.1

 * Bugfixes.

#### 1.1

 * Rewritten from the ground up for future extensibility.
 * Performance enhancements.
 * Improved UI.
 * Better handling for late calls to the Heartbeat API.
 * New condition settings for filtering on the frontend.

#### 1.0.2

 * Bumped tested version
 * Added donation button

#### 1.0

 * Initial release.

## 中繼資料

 *  版本 **2.0.1**
 *  最後更新 **3 年前**
 *  啟用安裝數 **80,000+**
 *  WordPress 版本需求 ** 3.6 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.3.8**
 *  PHP 版本需求 ** 5.3 或更新版本 **
 *  語言
 * [Chinese (Taiwan)](https://tw.wordpress.org/plugins/heartbeat-control/)、[Czech](https://cs.wordpress.org/plugins/heartbeat-control/)、
   [Dutch](https://nl.wordpress.org/plugins/heartbeat-control/)、[Dutch (Belgium)](https://nl-be.wordpress.org/plugins/heartbeat-control/)、
   [English (US)](https://wordpress.org/plugins/heartbeat-control/)、[French (France)](https://fr.wordpress.org/plugins/heartbeat-control/)、
   [Galician](https://gl.wordpress.org/plugins/heartbeat-control/)、[Russian](https://ru.wordpress.org/plugins/heartbeat-control/)、
   [Spanish (Chile)](https://cl.wordpress.org/plugins/heartbeat-control/)、[Spanish (Spain)](https://es.wordpress.org/plugins/heartbeat-control/)、
   [Spanish (Venezuela)](https://ve.wordpress.org/plugins/heartbeat-control/)、及
   [Swedish](https://sv.wordpress.org/plugins/heartbeat-control/).
 *  [將這個外掛本地化為你的母語版本](https://translate.wordpress.org/projects/wp-plugins/heartbeat-control)
 * 標籤:
 * [admin-ajax](https://tw.wordpress.org/plugins/tags/admin-ajax/)[heartbeat](https://tw.wordpress.org/plugins/tags/heartbeat/)
   [heartbeat api](https://tw.wordpress.org/plugins/tags/heartbeat-api/)
 *  [進階檢視](https://tw.wordpress.org/plugins/heartbeat-control/advanced/)

## 評分

 4.2 星，滿分為 5 星

 *  [  50 個 5 星使用者評論     ](https://wordpress.org/support/plugin/heartbeat-control/reviews/?filter=5)
 *  [  3 個 4 星使用者評論     ](https://wordpress.org/support/plugin/heartbeat-control/reviews/?filter=4)
 *  [  3 個 3 星使用者評論     ](https://wordpress.org/support/plugin/heartbeat-control/reviews/?filter=3)
 *  [  2 個 2 星使用者評論     ](https://wordpress.org/support/plugin/heartbeat-control/reviews/?filter=2)
 *  [  10 個 1 星使用者評論     ](https://wordpress.org/support/plugin/heartbeat-control/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/heartbeat-control/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/heartbeat-control/reviews/)

## 參與者

 *   [ WP Media ](https://profiles.wordpress.org/wp_media/)
 *   [ WP Rocket ](https://profiles.wordpress.org/wp_rocket/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/heartbeat-control/)