Title: hamecache
Author: Fumiki Takahashi
Published: <strong>2019 年 5 月 31 日</strong>
Last modified: 2019 年 5 月 31 日

---

搜索插件

![](https://ps.w.org/hamecache/assets/banner-772x250.jpg?rev=2098366)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

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

# hamecache

 作者：[Fumiki Takahashi](https://profiles.wordpress.org/takahashi_fumiki/)

[下载](https://downloads.wordpress.org/plugin/hamecache.1.0.0.zip)

 * [详情](https://cn.wordpress.org/plugins/hamecache/#description)
 * [评价](https://cn.wordpress.org/plugins/hamecache/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/hamecache/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/hamecache/#developers)

 [支持](https://wordpress.org/support/plugin/hamecache/)

## 描述

[CloudFlare](https://cloudflare.com) is a popular CDN service. They caches static
files like `.jpg`, `.css` or `.html`, but they doesn’t cache dynamic pages generated
by WordPress without [Page Rule](https://www.cloudflare.com/features-page-rules/must-use-page-rules/).

Once Page Rules are set, for exmple, `https://examle.com/article/*`, every single
page will be cached(of course, your permalink structure should be like `https://
example.com/article/2019/01/01/POST_ID`).

This plugin **hamecache** provides cache control feature. If you update your article,
hamecache automatically flush related caches on cloudflare edge location.

## 屏幕截图

[⌊You can purge caches for post from admin bar.⌉⌊You can purge caches for post from
admin bar.⌉[

You can purge caches for post from admin bar.

[⌊Setting screen. Select post types with which page rules are matching.⌉⌊Setting
screen. Select post types with which page rules are matching.⌉[

Setting screen. Select post types with which page rules are matching.

## 安装

 1. Upload `hamecache` directory to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Go to ‘Setting > Cache Setting’ and enter your email address and API key which 
    you can get your profile page on [cloudflare](https://dash.cloudflare.com)
 4. Select URL to be purged. Post type, top page, extra pages, and so on.

## 常见问题

  How can I contribute?

We host our sources on [GitHub](https://github.com/hametuha/hamecache), so please
feel free to send [PR](https://github.com/hametuha/hamecache/pulls) or to make [issues](https://github.com/hametuha/hamecache/issues).

  I have custom pages. How can I purge these URLs?

You can use `hamecache_urls_to_be_purged` filter hook for them.

    ```
    add_filter( 'hamecache_urls_to_be_purged', function( $urls, $post ) {
        // Add your custom URL.
        $urls[] = your_custom_link( $post );
        return $urls;
    }, 10, 2 );
    ```

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

 *   [ Fumiki Takahashi ](https://profiles.wordpress.org/takahashi_fumiki/)
 *   [ Hametuha INC. ](https://profiles.wordpress.org/hametuha/)

「hamecache」插件已被翻译至 1 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/hamecache/contributors)
为本插件所做的贡献。

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

### 对开发感兴趣吗?

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

## 更新日志

#### 1.0.0

 * First releaes.

#### 0.9.0

 * First package for plugin repository.

## 额外信息

 *  版本 **1.0.0**
 *  最后更新：**7 年前**
 *  活跃安装数量 **30+**
 *  WordPress 版本 ** 5.0 或更高版本 **
 *  已测试的最高版本为 **5.2.24**
 *  PHP 版本 ** 5.6 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/hamecache/) 和 [Japanese](https://ja.wordpress.org/plugins/hamecache/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/hamecache)
 * 标签
 * [cache](https://cn.wordpress.org/plugins/tags/cache/)[cloudflare](https://cn.wordpress.org/plugins/tags/cloudflare/)
 *  [高级视图](https://cn.wordpress.org/plugins/hamecache/advanced/)

## 评级

尚未提交反馈。

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

[查看全部评论](https://wordpress.org/support/plugin/hamecache/reviews/)

## 贡献者

 *   [ Fumiki Takahashi ](https://profiles.wordpress.org/takahashi_fumiki/)
 *   [ Hametuha INC. ](https://profiles.wordpress.org/hametuha/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/hamecache/)