Title: Cache Images
Author: Matt Mullenweg
Published: <strong>2005 年 2 月 8 日</strong>
Last modified: 2023 年 10 月 25 日

---

搜索插件

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

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

# Cache Images

 作者：[Matt Mullenweg](https://profiles.wordpress.org/matt/)

[下载](https://downloads.wordpress.org/plugin/cache-images.3.2.2.zip)

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

 [支持](https://wordpress.org/support/plugin/cache-images/)

## 描述

[Plugin homepage](http://blog.milandinic.com/wordpress/plugins/cache-images/) | 
[Plugin author](http://blog.milandinic.com/)

Cache Images is a plugin that gives users option to sideload images that are hosted
on other domains to their own site. Sideloaded images are added to WordPress media
library so you can use all tools related to images that you can use with images 
uploaded through WordPress. Image will be added as an attachment of first post where
it is found, and every post where original URL is occurring will be updated with
new URL. User can select from which domains to sideload images, including Blogger’s
domains.

It uses AJAX so it means you can sideload large number of images even on slow servers.(
AJAX functions are made by fork of code from plugin [AJAX Thumbnail Rebuild](https://wordpress.org/extend/plugins/ajax-thumbnail-rebuild/))

This plugin is fully internationalized. You can find .pot file in _languages_ folder
where you should place your translation. Current translations are Serbian, Spanish,
and Persian. Please send your translation by [contacting author](http://blog.milandinic.com/contact/)
so that it can be included it in next releases.

Read more information about usage on [author’s site](http://blog.milandinic.com/wordpress/plugins/cache-images/).

## 屏幕截图

[⌊First screen with basic information about usage of plugin and a button Scan⌉⌊First
screen with basic information about usage of plugin and a button Scan⌉[

First screen with basic information about usage of plugin and a button Scan

[⌊List of all domains from which there is hotlinked image⌉⌊List of all domains from
which there is hotlinked image⌉[

List of all domains from which there is hotlinked image

[⌊Settings for automatic caching⌉⌊Settings for automatic caching⌉[

Settings for automatic caching

## 安装

 1. Upload `cache-images` folder to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Go to ‘Tools’ > ‘Cache Remote Images’ page
 4. Go to ‘Settings’ > ‘Media’ page to enable automatic caching

## 评价

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

### 󠀁[No better than doing it by hand](https://wordpress.org/support/topic/no-better-than-doing-it-by-hand/)󠁿

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

This plugin doesn’t update the ALT fields of the images from the alt tags, so, basically,
it’s exactly the same as just bulk downloading the images from a remote site and
bulk uploading them to your library. It does stick the local copies in the same 
places you had hotlinked them in your post, which is great (and is the reason I’m
giving 2 stars instead of 1), unless, like me, it leaves you with 500 media files
that you now need to update the alt fields individually by hand, making the whole
exercise a waste of time.

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

### 󠀁[Fine for tiny sites with a handful of images](https://wordpress.org/support/topic/fine-for-tiny-sites-with-a-handful-of-images/)󠁿

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

When I tried to use this on my blog (which has been running since 2001, and has 
many thousands of entries), it failed miserably. For many years, I kept images on
a different server I run, and linked to them from my blog. I finally decided to 
migrate all the images to my blog. Things seemed to go well at first, until the 
plugin hit a few hundred images, at which point my VPS crashed hard. The plugin 
seems only meant for tiny blogs with maybe a dozen images or so. There’s no rate
limiting, no provision for heavy load, no way it can handle more than a small handful
of images. Also, it wants to resize images, for some reason. If oyur goal is to 
end up with a blog exactly the same as it was before, but with the images local 
instead of remote, it should just…bring in the remote images, not resize them.

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

### 󠀁[The one that really works (till 2019)](https://wordpress.org/support/topic/the-one-that-really-works-till-2019/)󠁿

 [henriquebs12](https://profiles.wordpress.org/henriquebs12/) 2019 年 2 月 17 日

The one that really works without messing my HTML, and allowing automatic caching
for future posts at the same time. The only thing that I’d like is the ability to
change the cached file name (like caching with the post name or time included on
name. And change base URL. Thanks!

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

### 󠀁[Still working](https://wordpress.org/support/topic/still-working-62/)󠁿

 [](https://profiles.wordpress.org/kwdavids/) 2018 年 1 月 23 日

Despite some comments to the contrary, this plug-in works with WordPress 4.9.2. 
It is well-designed with a very helpful user interface. If you want to get rid of
hot-linked images on your WordPress, this is a painless way to find them and automatically
put the images on your own site and replace the link.

 [ 阅读所有5条评价 ](https://wordpress.org/support/plugin/cache-images/reviews/)

## 贡献者及开发者

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

贡献者

 *   [ Matt Mullenweg ](https://profiles.wordpress.org/matt/)
 *   [ Milan Dinić ](https://profiles.wordpress.org/dimadin/)

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

### 对开发感兴趣吗?

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

## 更新日志

#### 3.2.2

 * Fixed some potential PHP 8.x warnings.

#### 3.2

 * Adds nonce & capability checks.
 * Removes functionality that triggers WP deprecated notices.

#### 3.1

 * Released on 3rd December 2010
 * Tries to fix issue with bad Blogger’s URLs
 * Tries to fix issue with “invalid argument for foreach” error
 * Tries to fix issue with “undefined function media_sideload_image()” error
 * Fixed unescaped characters in code examples
 * Updated screenshot-2

#### 3.0

 * Released on 25th November 2010
 * Complete ajaxification of a plugin
 * Option for automatic caching on post’s saving
 * Option to cache linked images
 * Made standalone functions for finding and caching
 * Improved documentation
 * Code cleanup
 * Updated Serbian and Spanish translations

#### 2.0

 * Complete rewrite of plugin
 * Images are now sideloaded via built in function and added to WordPress’ media
   library
 * Plugin now uses AJAX so it means you can cache large number of images even on
   slow servers
 * You can now cache images from Blogger’s domains too

## 额外信息

 *  版本 **3.2.2**
 *  最后更新：**3 年前**
 *  活跃安装数量 **1,000+**
 *  WordPress 版本 ** 2.8 或更高版本 **
 *  已测试的最高版本为 **6.4.8**
 *  语言
 * [English (US)](https://wordpress.org/plugins/cache-images/)
 * 标签
 * [hotlink](https://cn.wordpress.org/plugins/tags/hotlink/)[images](https://cn.wordpress.org/plugins/tags/images/)
   [media](https://cn.wordpress.org/plugins/tags/media/)[media library](https://cn.wordpress.org/plugins/tags/media-library/)
   [sideload](https://cn.wordpress.org/plugins/tags/sideload/)
 *  [高级视图](https://cn.wordpress.org/plugins/cache-images/advanced/)

## 评级

 4 星（最高 5 星）。

 *  [  4 条 5 星评价     ](https://wordpress.org/support/plugin/cache-images/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/cache-images/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/cache-images/reviews/?filter=3)
 *  [  2 条 2 星评价     ](https://wordpress.org/support/plugin/cache-images/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/cache-images/reviews/?filter=1)

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

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

## 贡献者

 *   [ Matt Mullenweg ](https://profiles.wordpress.org/matt/)
 *   [ Milan Dinić ](https://profiles.wordpress.org/dimadin/)

## 支持

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

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