Title: ImgCache
Author: IronFeet
Published: <strong>2010 年 10 月 4 日</strong>
Last modified: 2022 年 6 月 2 日

---

搜索插件

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

![](https://s.w.org/plugins/geopattern-icon/imgcache.svg)

# ImgCache

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

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

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

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

## 描述

Some webmasters would like to show the images under some domains which are blocked
in some countries such as China.
 So they need to cache these kinds of images such
as Feedburner subscribers counter into their hosts.

This plugin can help you cache the images easily

一些站长希望在自己的页面展示一些来自其他站点的图片。而被引用图片的站点可能无法被
一些国家的网友访问到，例如中国。
 所以他们需要将这类图片缓存到本地，例如 Feedburner
的用户订阅数图片

通过此插件可以方便地有选择地对图片进行缓存。

### Feedback

https://github.com/ironfeet/imgcache

## 安装

To install:

 1. Put the ‘imgcache’ folder into your ‘wp-content/plugins’ folder
 2. Access the plugins page and activate the “imgcache”
 3. Check ImgCache in settings, and read the instructions.

To use:

 1. Add the ref property whose value is imgcache4wordpress into the img tag.

For example,

    ```
    if you would like to cache this image (https://secure.gravatar.com/avatar/27026e1c60e2659f3350af30b78565b0?s=80), we can use 

        <img ref=imgcache4wordpress src=https://secure.gravatar.com/avatar/27026e1c60e2659f3350af30b78565b0?s=80 />

    instead of 

        <img src=https://secure.gravatar.com/avatar/27026e1c60e2659f3350af30b78565b0?s=80 />
    ```

Warning:

 1. The images will not be cached again within one hour if their cached images exist.
 2. The images under the same domain will not be cached.
 3. If the images can’t be cached by this plugin (such as 404, 403), the sources of
    the image tag remain.

安装：

 1. 将 imgcache 文件夹放入 wp-content/plugins 文件夹
 2. 进入插件管理页面，将 imgcache 激活
 3. 在“设置”菜单选择 ImgCache，阅读说明

使用：

 1. 在 img 标签中加入值为 imgcache4wordpress 的 ref 属性

比如说，

    ```
    一般情况下，我们如果想展示一个图片，就会写成

        <img src=https://secure.gravatar.com/avatar/27026e1c60e2659f3350af30b78565b0?s=80 />

    如果想对该图片作缓存展示的话，需要改为

        <img ref=imgcache4wordpress src=https://secure.gravatar.com/avatar/27026e1c60e2659f3350af30b78565b0?s=80 />
    ```

注意：

 1. 一幅图片如果被缓存后，在一个小时后才会被重新缓存。
 2. 本站图片不会被缓存，只缓存其它站点的图片。
 3. 如果插件无法对图片进行缓存（链接错误、无权限等等引起的），将会使用其原始 URL

## 常见问题

No questions

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

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

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

### 对开发感兴趣吗?

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

## 更新日志

#### 0.2.1

 * Fixed the SVG suffix issues
 * Updated the description
 * Updated the code format
 * Enabled the HTTPS support

#### 0.1.2

 * Fixed the URL extraction error, if there is no space between src and >

#### 0.1.1

 * Removed redundancy warning

#### 0.1

 * Initial release

## 额外信息

 *  版本 **0.2.1**
 *  最后更新：**4 年前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 2.6 或更高版本 **
 *  已测试的最高版本为 **6.0.14**
 *  语言
 * [English (US)](https://wordpress.org/plugins/imgcache/)
 * 标签
 * [cache](https://cn.wordpress.org/plugins/tags/cache/)[image](https://cn.wordpress.org/plugins/tags/image/)
 *  [高级视图](https://cn.wordpress.org/plugins/imgcache/advanced/)

## 评级

尚未提交反馈。

[您的评价](https://wordpress.org/support/plugin/imgcache/reviews/#new-post)

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

## 贡献者

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

## 支持

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

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

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://ironfeet.me/)