Title: Flush Transients
Author: Felix Arntz
Published: <strong>2024 年 1 月 18 日</strong>
Last modified: 2026 年 5 月 17 日

---

搜索插件

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

# Flush Transients

 作者：[Felix Arntz](https://profiles.wordpress.org/flixos90/)

[下载](https://downloads.wordpress.org/plugin/flush-transients.1.0.1.zip)

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

 [支持](https://wordpress.org/support/plugin/flush-transients/)

## 描述

Just like many other plugins offer a feature to flush the WordPress object cache,
this plugin allows to flush transients.

Many WordPress sites do not have access to an object cache in their hosting environment,
and for those sites transients are the only mechanism for caching data which WordPress
natively supports. Being able to clear transients can be crucial for certain use-
cases, particularly on sites that do not use an object cache.

This plugin adds a small admin bar menu item where users with the required capabilities
can flush transients for the site. For sites not using an object cache, where transients
are stored in the database, the menu item also provides information on the amount
of transients stored.

Both regular transients and network transients are supported. When using WordPress
Multisite, network transients can be flushed in the Network Admin UI.

## 屏幕截图

 * [[
 * The admin bar entry to flush transients

## 安装

 1. Upload the entire `flush-transients` folder to the `/wp-content/plugins/` directory
    or download it through the WordPress backend.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.

## 常见问题

### Which users can flush transients?

The plugin checks for a new capability `flush_transients`. By default, it is granted
to any user that has the `manage_options` capability.

To disable this default behavior, you can unhook the relevant function:

    ```
    <?php
    remove_filter( 'user_has_cap', 'flush_transients_grant_cap' );
    ```

Note however that in this case you will have to grant the capability in another 
way outside of this plugin.

When using WordPress Multisite, network transients can only be flushed by network
administrators by default, relying on a distinct `flush_network_transients` capability.

### Where can I configure the plugin?

This plugin doesn’t come with a settings screen or options of any kind. You can 
flush transients via the admin bar menu item.

### Where should I submit my support request?

For regular support requests, please use the [wordpress.org support forums](https://wordpress.org/support/plugin/flush-transients).
If you have a technical issue with the plugin where you already have more insight
on how to fix it, you can also [open an issue on GitHub instead](https://github.com/felixarntz/flush-transients/issues).

### How can I contribute to the plugin?

If you have ideas to improve the plugin or to solve a bug, feel free to raise an
issue or submit a pull request in the [GitHub repository for the plugin](https://github.com/felixarntz/flush-transients).
Please stick to the [contributing guidelines](https://github.com/felixarntz/flush-transients/blob/main/CONTRIBUTING.md).

You can also contribute to the plugin by translating it. Simply visit [translate.wordpress.org](https://translate.wordpress.org/projects/wp-plugins/flush-transients)
to get started.

## 评价

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

### 󠀁[Simple and effective](https://wordpress.org/support/topic/simple-and-effective-1621/)󠁿

 [Amadeu Arderiu](https://profiles.wordpress.org/amadeuarderiu/) 2025 年 3 月 21
日

I was looking for a simple and easy way to flush transients without leaving the 
current view.

 [ 阅读所有1条评价 ](https://wordpress.org/support/plugin/flush-transients/reviews/)

## 贡献者及开发者

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

贡献者

 *   [ Felix Arntz ](https://profiles.wordpress.org/flixos90/)

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

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

### 对开发感兴趣吗?

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

## 更新日志

#### 1.0.1

 * Avoid deprecation warnings in WordPress 6.8 by using new transient action hooks.

#### 1.0.0

 * First stable release

#### 1.0.0-beta.1

 * First beta release

## 额外信息

 *  版本 **1.0.1**
 *  最后更新：**1 周前**
 *  活跃安装数量 **100+**
 *  WordPress 版本 ** 5.0 或更高版本 **
 *  已测试的最高版本为 **7.0**
 *  PHP 版本 ** 5.2 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/flush-transients/) 、 [German](https://de.wordpress.org/plugins/flush-transients/)
   和 [Portuguese (Portugal)](https://pt.wordpress.org/plugins/flush-transients/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/flush-transients)
 * 标签
 * [cache](https://cn.wordpress.org/plugins/tags/cache/)[invalidation](https://cn.wordpress.org/plugins/tags/invalidation/)
   [performance](https://cn.wordpress.org/plugins/tags/performance/)[transients](https://cn.wordpress.org/plugins/tags/transients/)
 *  [高级视图](https://cn.wordpress.org/plugins/flush-transients/advanced/)

## 评级

 5 星（最高 5 星）。

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

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

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

## 贡献者

 *   [ Felix Arntz ](https://profiles.wordpress.org/flixos90/)

## 支持

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

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

## 捐助

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

 [ 捐助此插件 ](https://felix-arntz.me/wordpress-plugins/)