WordPress.org

Ready to get started?Download WordPress

Plugin Directory

!This plugin hasn't been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

ImgCache

Cache the imgs from other domains. 为其他站点下的图片作缓存。

To install:

  1. Drop the 'imgcache' folder into your 'wp-content/plugins' folder

  2. Plugins page and activate the "imgcache"

  3. Settings: ImgCache , and read the instructions.

To use:

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

For example,

if you wanna cache the pic ( http://www.gravatar.com/avatar/27026e1c60e2659f3350af30b78565b0?s=80 ), we can use 

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

instead of 

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

Warning:

  1. The imgs will not be recache in one hour, if their cached imgs exist.

  2. The imgs in own sites will not be cached.

  3. If the imgs cann't be cache by this plugin (such as 404, 403), the original url of the imgs will be used.

Known issues:

  1. imgs via https are not supported.(It will be solved in next version)

安装:

  1. 将imgcache文件夹放入wp-content/plugins文件夹

  2. 进入插件管理页面,将imgcache激活

  3. 在“设置”菜单选择ImgCache,阅读说明

使用:

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

比如说,

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

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

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

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

注意:

  1. 一幅图片如果被缓存后,在一个小时后才会被重新缓存。

  2. 本站图片不会被缓存,只缓存其它站点的图片。

  3. 如果插件无法对图片进行缓存(链接错误、无权限等等引起的),将会使用其原始URL

已知问题:

  1. 链接为https的图片无法被缓存(将会在新版本中解决)

Requires: 2.6 or higher
Compatible up to: 2.9.2
Last Updated: 2010-10-5
Downloads: 613

Ratings

5 stars
5 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.