FastComments.com

Add Live Commenting to WordPress Sites on Kinsta

This guide covers installing FastComments on a WordPress site hosted on Kinsta, and the Kinsta features that affect the plugin: page caching, server cron, and staging environments.

Kinsta is a managed WordPress host. A WordPress site on Kinsta uses the standard WordPress comment system, which stores comments in the site's database. The FastComments WordPress plugin replaces it with the FastComments widget and syncs comments back to the database on a schedule. Plugin setup, moderation, SSO, and sync are described in the WordPress guide. This guide does not repeat them.

This tutorial requires a FastComments account. You can create an account here.

Install the Plugin Internal Link

Kinsta sites use the standard WordPress plugin installer. MyKinsta can update, activate, and deactivate plugins that are already installed, but new plugins are installed from WordPress.

Install from WordPress

  1. Log in to the WordPress dashboard of the site.
  2. Go to Plugins > Add New and search for FastComments.
  3. Click Install Now, then Activate.

The plugin can also be downloaded from wordpress.org/plugins/fastcomments and uploaded with Plugins > Add New > Upload Plugin.

FastComments is not on Kinsta's list of banned and incompatible plugins, so Kinsta does not block the installation.

Run the Setup

Click FastComments in the WordPress left navigation and follow the setup steps. The setup creates or connects your FastComments account, asks whether the account is hosted in the EU, and can upload existing WordPress comments. The steps are described in the WordPress guide.

Run the setup on the live environment, which holds the site's current comments. See Staging Environments and Domains before testing on a Kinsta staging environment.

Network Requirements

All requests made by the plugin are outbound HTTPS requests from the Kinsta server to fastcomments.com, or to eu.fastcomments.com for EU accounts. The plugin's REST routes under /wp-json/fastcomments/v1/api/ are used by the plugin's admin pages and require an administrator. No inbound firewall rules or Kinsta configuration changes are needed.

Page Cache Internal Link

Kinsta caches full pages at the server level and, when Edge Caching is enabled, on Cloudflare's network. FastComments works with both caches without exclusions or cache rules.

Anonymous Visitors

The plugin outputs a <div id="fastcomments-widget"> element and a script that loads from cdn.fastcomments.com and calls FastCommentsUI. Comments are loaded in the visitor's browser, not rendered into the HTML. For visitors who are not logged in to WordPress, the widget configuration in the page identifies only the post, so the same cached page can be served to all of them. New comments appear without clearing the cache.

Logged-In Users and SSO

When SSO is enabled in the plugin, the page HTML contains the SSO payload of the logged-in WordPress user. Kinsta does not serve cached pages to logged-in users:

A user's SSO payload is therefore never stored in a cached page or served to another visitor. SSO setup is described in the WordPress guide.

Clearing the Cache

Clear the cache after installing, configuring, or removing the plugin, so that cached pages pick up the change. Cached pages expire after 24 hours by default.

  • In MyKinsta, go to Sites > sitename > Caching > Server Caching and click Clear cache. If Edge Caching is enabled, also clear it under Caching > Edge Caching, which clears only the edge cache.
  • In the WordPress dashboard, click Clear Caches in the admin toolbar, or use the Kinsta Cache page in the left navigation. Both are provided by the Kinsta MU plugin, which Kinsta installs on its sites.
  • With WP-CLI over SSH, run wp kinsta cache purge --all.

Widget customizations made in the FastComments dashboard do not require clearing the cache, because the widget loads them in the browser.

Cron and Comment Sync Internal Link

The plugin copies comments from FastComments back into the WordPress database with a WP-Cron event, fastcomments_cron_hook. The copy is kept for backups and for plugins that read WordPress comments. Comments are shown to visitors from FastComments, so the sync schedule does not affect what visitors see.

Sync Interval

Choose how often the sync runs with the Sync Interval setting on the plugin's Advanced Settings page:

  • Every 24 hours (default)
  • Every hour
  • Every 15 minutes
  • Every 5 minutes

How Kinsta Runs WP-Cron

Kinsta runs a server cron job on every site that runs WP-Cron every 15 minutes (Kinsta: How to Disable WP-Cron). WordPress also runs WP-Cron during page requests that reach WordPress, unless DISABLE_WP_CRON is set to true in wp-config.php. Pages served from Kinsta's page cache do not reach WordPress.

With the server cron, the daily, hourly, and 15 minute intervals run on schedule without further configuration. The 5 minute interval runs only as often as WP-Cron does. Kinsta support can lower the server cron interval for a site, and the minimum interval Kinsta allows for server cron jobs is 5 minutes (Kinsta Docs: Cron Jobs).

Initial Comment Upload

During setup, the plugin uploads existing WordPress comments to FastComments while the setup page is open. If the setup page is closed before the upload finishes, the upload continues through one-off WP-Cron events, so it advances each time WP-Cron runs: every 15 minutes from Kinsta's server cron, or sooner on requests that reach WordPress. Keep the setup page open until the upload completes.

Running the Sync Manually

The sync can be started at any time from the plugin dashboard with Manually Sync, as described in the WordPress guide. Over SSH, WP-CLI can run the event directly:

Run the FastComments Sync with WP-CLI
Copy Copy
1
2wp cron event run fastcomments_cron_hook
3