Linux 软件免费装

Bypass Transients

开发者 welcher
更新时间 2016年12月16日 11:57
捐献地址: 去捐款
PHP版本: 3.0 及以上
WordPress版本: 4.7
版权: GPLv2 or later
版权网址: 版权信息

标签

admin bar developer debug bar transients

下载

详情介绍:

We all know that caching is FTW. But, caching can be a nuisance when trying to develop or debug. That's where this plugin comes in. You can bypass any get_transient() calls on a per page basis by clicking the link in the Admin Bar. Features:
  1. Bypass Transients with a single click
  2. Supports Transients saved to the database
  3. Object Cache support - currently only tested with memecached
  4. Will automatically detected any new transients set.
  5. Debug Bar integration to provide details such as lists of known, found and bypassed transients.
Usage: Install and activate the plugin as normal. Suspend transients will loading the appropriate class based on the results wp_using_ext_object_cache(). Anytime a transient set, the plugin will detect it and add it to the known list. Standard Transients ( saved to the database ) When activated, the plugin will retrieve any existing transients from the database and add them to the known transients list. The Admin Bar will have two new buttons:
  1. Bypass Transients: bypasses known transients
  2. Scan Transients: reloads the transients from the database.
Object Cached Transients ( i.e memcached ) These transients are not stored in the database so the best way to get them is to use the Flush Transients button and reload the page to utilize the transient detection feature of the plugin. It may require two page loads; One to detect and add the transient, and then a second to actually bypass it. Admin Bar buttons:
  1. Bypass Transients: bypasses known transients
  2. Flush Transients: Calls wp_object_cache_flush() to invalidate the caches.
Disclaimer This plugin should NOT be run in a production environment. It is meant for local and MAYBE staging development. By it's very nature this will slow your site down.

安装:

Install this plugin as described in the Codex

常见问题:

Should I run this on a production server?

This will bypass your caching and slow down your site. If that is what you want, then yes run it on a production server :)

Does this delete transients?

No standard transients are not deleted. In an object cached environment, the caches are flushed so in that sense they are deleted.

更新日志:

1.0.0