Title: Widget Output Cache
Author: Kaspars
Published: <strong>2013 年 3 月 18 日</strong>
Last modified: 2023 年 5 月 18 日

---

搜索插件

![](https://ps.w.org/widget-output-cache/assets/banner-772x250.png?rev=683669)

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

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

# Widget Output Cache

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

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

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

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

## 描述

Use PHP output buffering to extract widget output and store it into WordPress transients
for faster retrieval. It also adds a checkbox to widget controls to exclude it from
being cached.

It is a quick fix for bad behaving plugins that parse RSS feeds or call remote URLs
on every page load.

## 安装

Install it from the official WordPress repository or use the plugin search in your
WordPress dashboard.

## 常见问题

None.

## 评价

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

### 󠀁[Nice! Super works with other cache plugins what not have integrated this cache!](https://wordpress.org/support/topic/nice-super-works-with-other-cache-plugins-what-not-have-integrated-this-cache/)󠁿

 [18TommyBoy](https://profiles.wordpress.org/18tommyboy/) 2023 年 12 月 5 日

LiteSpeed has not integrated this yet, superb thing to it!

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

### 󠀁[Extra speed boost](https://wordpress.org/support/topic/extra-speed-boost/)󠁿

 [Antony Booker](https://profiles.wordpress.org/antonynz/) 2016 年 9 月 3 日

Great plugin. Does it what is says and can really help give that extra speed boost.
It even refreshes the cache when a widget is saved. On first installation I would
recommend increasing the cache time from the default 12 minutes, using the below
filter: add_filter( ‘widget_output_cache_ttl’, ‘widget_cache_custom_ttl’, 10, 2 );
function widget_cache_custom_ttl( $ttl ) { $ttl = 3600 * 24; // 24 hours return 
$ttl; }

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

### 󠀁[This increased our support sites performance](https://wordpress.org/support/topic/this-increased-our-support-sites-performance/)󠁿

 [Skylightit](https://profiles.wordpress.org/skylightit/) 2016 年 9 月 3 日

We use various plugins to produce our support site with 200+ pages, widgets that
pull information from our sub sites at support.skylightit.com. We are using caching,
varnish and various server side and WP plugins. Our issue was that some of the custom
widgets were impacting the sites performance and this just improved it. So that 
you to the developers for awesome work.

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

### 󠀁[good plugin](https://wordpress.org/support/topic/good-plugin-1354/)󠁿

 [menesme](https://profiles.wordpress.org/menesme/) 2016 年 9 月 3 日

This is good plugin. Simple and easy to use although improved performance in my 
sites. But it has not been updated for a year. Is update yet?

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

### 󠀁[Works great.](https://wordpress.org/support/topic/works-great-2507/)󠁿

 [ikester7579](https://profiles.wordpress.org/ikester7579/) 2016 年 11 月 3 日 1
回复

If you have widgets with pics or animation, this plugin allows everything in it 
to be cached. Widgets do not cache normally. This even adds a little check box to
not cache certain ones of you run things in there that constantly change If you 
do change something and just need to clear the cache just for the widget to see 
what it looks like. Just hit the widget save button and the changes take place. 
So if you have a CDN local or off site set up, the widgets will now be included 
in that cache Sped up my webpage big time because I use widgets that download the
latest posts from 5 Face Book pages on the same subject but different information.
Because that’s all cached now and does not change for 24 hours (how I have it set
up in the FB feed through another plugin) the FB information is cached and loads
quickly instead of waiting for FB servers to send it..

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

### 󠀁[Works fine](https://wordpress.org/support/topic/works-fine-658/)󠁿

 [General Seed](https://profiles.wordpress.org/autocultivo/) 2017 年 2 月 7 日

Thanks , it works very fine, fine. Please keep update Great plugin

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

## 贡献者及开发者

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

贡献者

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

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

### 对开发感兴趣吗?

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

## 更新日志

#### 0.5.2

 * Tested with WordPress 4.5.2.

#### 0.5.1

 * Fixed transient name generation issue.

#### 0.5

 * Remove menu cache due to “active” menu item bug.
 * Allow individual widgets to be excluded from being cached.

#### 0.4.4

 * Honor widgets being hidden using the `widget_display_callback` filter.

#### 0.4.3

 * Add cache versioning for simple invalidation.

#### 0.4.2

 * Store menu cache only if WordPress supports `pre_wp_nav_menu`.

#### 0.4

 * Add support for menu output caching.

#### 0.1

 * Initial release.

#### Upgrade Notice

## 额外信息

 *  版本 **0.5.2**
 *  最后更新：**3 年前**
 *  活跃安装数量 **200+**
 *  WordPress 版本 ** 3.0.1 或更高版本 **
 *  已测试的最高版本为 **6.2.9**
 *  语言
 * [English (US)](https://wordpress.org/plugins/widget-output-cache/)
 * 标签
 * [cache](https://cn.wordpress.org/plugins/tags/cache/)[caching](https://cn.wordpress.org/plugins/tags/caching/)
   [output](https://cn.wordpress.org/plugins/tags/output/)[widget](https://cn.wordpress.org/plugins/tags/widget/)
   [widgets](https://cn.wordpress.org/plugins/tags/widgets/)
 *  [高级视图](https://cn.wordpress.org/plugins/widget-output-cache/advanced/)

## 评级

 4.9 星（最高 5 星）。

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

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

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

## 贡献者

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

## 支持

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

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