Title: Smooth API Accelerator
Author: smoothcdn
Published: <strong>2026 年 5 月 1 日</strong>
Last modified: 2026 年 5 月 27 日

---

搜索插件

![](https://ps.w.org/smooth-api-accelerator/assets/banner-772x250.png?rev=3520361)

![](https://ps.w.org/smooth-api-accelerator/assets/icon-256x256.png?rev=3520361)

# Smooth API Accelerator

 作者：[smoothcdn](https://profiles.wordpress.org/smoothcdn/)

[下载](https://downloads.wordpress.org/plugin/smooth-api-accelerator.1.2.2.zip)

 * [详情](https://cn.wordpress.org/plugins/smooth-api-accelerator/#description)
 * [评价](https://cn.wordpress.org/plugins/smooth-api-accelerator/#reviews)
 * [开发进展](https://cn.wordpress.org/plugins/smooth-api-accelerator/#developers)

 [支持](https://wordpress.org/support/plugin/smooth-api-accelerator/)

## 描述

Turn your WordPress REST API into a fast, edge-delivered data layer.

Smooth API Accelerator prepares your API responses for instant delivery through 
Smooth CDN. Instead of generating responses on every request, your data is pre-built,
optimized, and served as static JSON files from the edge.

Connect your site once, select the endpoints you want, and let the plugin handle
the rest.

### Why use Smooth API Accelerator?

 * ⚡ **Faster API responses** – serve JSON from CDN instead of generating it on
   every request
 * 🌍 **Edge delivery** – global availability with low latency
 * 🔄 **Automatic updates** – keep your API data in sync after content changes
 * 📦 **Static JSON snapshots** – predictable, cache-friendly responses
 * 🔒 **Optional protected delivery** – restrict access to selected API data
 * 🧠 **Cleaner payloads** – optional block parsing and content optimization

Perfect for:
 * Headless WordPress setups * Mobile apps using WordPress as a backend*
Frontends built with React, Next.js, or other frameworks * High-traffic APIs that
need stable and fast responses

### How it works

 1. Connect your site to Smooth CDN (account or guest mode)
 2. Discover available REST API endpoints
 3. Select endpoints to accelerate
 4. The plugin generates JSON snapshots and uploads them to Smooth CDN
 5. Your API data is now served from fast CDN URLs

### External services

This plugin connects to Smooth CDN to create and manage the remote project used 
for JSON acceleration.

It communicates with Smooth CDN when you:

 * start or complete the account or guest connection flow,
 * fetch account or project metadata needed by the plugin,
 * upload synced JSON snapshots,
 * delete synced JSON snapshots with `Unsync` or `Purge endpoints`.

Depending on the action, the plugin may send:

 * your site URL and site name,
 * the generated project name derived from the site domain,
 * authentication data needed to complete the Smooth CDN login flow,
 * project identifiers and account metadata required to manage the connection,
 * REST API JSON snapshots selected for sync, including paginated collection files,
 * asset paths, filenames, and protection flags used to manage synced files.

Smooth CDN service links:

 * Terms of Service: https://smoothcdn.com/terms
 * Privacy Policy: https://smoothcdn.com/privacy

### Features

 * Simple setup with unified connection and configuration view
 * Smooth CDN connection in minutes (account or guest mode)
 * Manual endpoint discovery with clear separation of synced and available routes
 * One-click sync for selected endpoints
 * Automatic re-sync after post and taxonomy updates
 * Paginated collection sync with metadata manifest
 * Optional `blocks` field generation for structured content
 * Optional removal of raw `content` field for lighter responses
 * Optional protected JSON delivery
 * Lock mode for direct REST GET access via `wp-json`
 * `Unsync` and `Purge endpoints` remove both local and CDN data
 * Clear dashboard with sync and acceleration status

### Synced JSON layout

Single endpoints are uploaded as one JSON file:

    ```
    https://cdn.smoothcdn.com/<user-slug>/<project-slug>/wp/v2/pages/42.json
    ```

Collection endpoints are uploaded as:

    ```
    https://cdn.smoothcdn.com/<user-slug>/<project-slug>/wp/v2/posts.json
    https://cdn.smoothcdn.com/<user-slug>/<project-slug>/wp/v2/posts/page-1.json
    https://cdn.smoothcdn.com/<user-slug>/<project-slug>/wp/v2/posts/page-2.json
    ```

The collection metadata file contains:

    ```
    {
        "per_page": 50,
        "total_pages": 2,
        "pages": [
            "https://cdn.smoothcdn.com/<user-slug>/<project-slug>/wp/v2/posts/page-1.json",
            "https://cdn.smoothcdn.com/<user-slug>/<project-slug>/wp/v2/posts/page-2.json"
        ]
    }<h3>Settings overview</h3>Key settings that affect synced output:
    ```

 * `Add blocks field` adds a normalized `blocks` field when supported content is
   available.
 * `Remove content field` is available only when `Add blocks field` is enabled and
   removes `content` after `blocks` is added.
 * `Protected assets` uploads synced JSON files as protected Smooth CDN assets.
 * `Collection sync page size` controls pagination for collection endpoints. Available
   values: `10`, `25`, `50`, `100`. Default: `50`.
 * `Auto scan and sync` controls how often WP-Cron runs automatic scan and sync.

Changing output-affecting settings invalidates previous sync markers and queues 
a faster full scan + sync through WP-Cron.

### Developer hooks

Use `scdn_api_accelerator_save_post_related_routes` to add custom routes/templates
that should be refreshed and synced after `save_post`.

Example:

    ```
    add_filter( 'scdn_api_accelerator_save_post_related_routes', function( $rules, $post_id, $post ) {
        $rules[] = 'product|route:/custom/v1/products/{post_id}';
        $rules[] = 'product|template:/custom/v1/products';
        $rules[] = [
            'post_type' => 'page',
            'route'     => '/custom/v1/page-index',
        ];

        return $rules;
    }, 10, 3 );
    ```

Use `scdn_api_accelerator_pre_send_json` to adjust endpoint payload before upload.

Example:

    ```
    add_filter( 'scdn_api_accelerator_pre_send_json', function( $data, $route, $context ) {
        if ( '/wp/v2/posts' === $route && is_array( $data ) ) {
            foreach ( $data as $index => $item ) {
                if ( ! is_array( $item ) ) {
                    continue;
                }

                unset( $data[ $index ]['class_list'], $data[ $index ]['meta'] );
            }
        }

        return $data;
    }, 10, 3 );<h3>Maintenance</h3>`Unsync` removes selected endpoints from sync, deletes their CDN files, and returns them to detected state.

    Purge endpoints removes all synced data from Smooth CDN and clears local state.<h3>License</h3>GPLv2 or later
    ```

## 评价

此插件暂无评价。

## 贡献者及开发者

「Smooth API Accelerator」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ smoothcdn ](https://profiles.wordpress.org/smoothcdn/)

[帮助将「Smooth API Accelerator」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/smooth-api-accelerator)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/smooth-api-accelerator/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/smooth-api-accelerator/)，或通过
[RSS](https://plugins.trac.wordpress.org/log/smooth-api-accelerator/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/smooth-api-accelerator/)。

## 更新日志

#### 1.2.2

 * Improved blocks field handling for page endpoints.

#### 1.2.1

 * Fixed endpoint unsync and purge cleanup reliability.

#### 1.2.0

 * Added setup wizard for API Accelerator onboarding.

#### 1.1.0

 * Added project access management for synced JSON endpoints.

#### 1.0.8

 * Maintenance update.

#### 1.0.7

 * Removed project level tokens.

#### 1.0.6

 * Minor UI changes.

#### 1.0.5

 * Switched protected JSON handling from global setting to per-endpoint control.

#### 1.0.4

 * Forced endpoint sync after changing `Protected assets`.
 * Hid `Open` action for protected synced JSON assets.

#### 1.0.3

 * Overview dashboard adjustments.

#### 1.0.2

 * Added WordPress.org plugin icon and visual assets.

#### 1.0.1

 * Added WordPress.org plugin icon and visual assets.
 * Improved plugin readme description and formatting.

#### 1.0.0

 * Initial release.

## 额外信息

 *  版本 **1.2.2**
 *  最后更新：**5 天前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 6.0 或更高版本 **
 *  已测试的最高版本为 **7.0**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/smooth-api-accelerator/)
 * 标签
 * [cache](https://cn.wordpress.org/plugins/tags/cache/)[cdn](https://cn.wordpress.org/plugins/tags/cdn/)
   [JSON](https://cn.wordpress.org/plugins/tags/json/)[performance](https://cn.wordpress.org/plugins/tags/performance/)
   [rest-api](https://cn.wordpress.org/plugins/tags/rest-api/)
 *  [高级视图](https://cn.wordpress.org/plugins/smooth-api-accelerator/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/smooth-api-accelerator/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/smooth-api-accelerator/reviews/)

## 贡献者

 *   [ smoothcdn ](https://profiles.wordpress.org/smoothcdn/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/smooth-api-accelerator/)