Transients code>内,存在一个选项屏幕,可让您调整要执行的各种内务处理中的哪一项happen, including the ability to perform an ad-hoc run, and when you'd like the to be automatically scheduled.
发生,包括执行临时运行的能力,以及您希望自动安排的时间。 p>
You can even request an optimization of the options table to give your system a real “pep”!
您甚至可以请求对选项表进行优化,以使您的系统真正“ pep”! p>
Running in Lite mode
以精简模式运行 h3>
A “lite” mode is available.
可以使用“精简”模式。
By activating this the options screen will no longer appear and default settings will be used.
通过激活此选项,选项屏幕将不再出现,并且将使用默认设置。
The advantage?
优势?
Improved performance to Admin and, especially if you’re running multi-site, no chance of anybody “tinkering” with the settings.
改善了Admin的性能,尤其是在运行多站点的情况下,任何人都无法修改这些设置。 p>
To activate, use the following…
要激活,请使用以下… p>
define( 'TC_LITE', true ); define('TC_LITE',true);
code> pre>
This should be added to your wp-config.php
file.
这应该添加到您的 wp-config.php code>文件中。 p>Using hooks
使用挂钩 h3>
If you’re the type of odd person who likes to code for WordPress (really?) then I’ve added a couple of hooks so you can call our rather neat housekeeping functions…
如果您是喜欢为WordPress编写代码的奇怪的人(真的吗?),那么我添加了几个挂钩,以便您可以调用我们相当整洁的客房服务功能…… p>
housekeep_transients
– this will clear down any expired transients-
housekeep_transients code> –这将清除所有过期的瞬变 li>clear_all_transients
– this will remove any and all transients, expired or otherwise-
clear_all_transients code> –这将删除所有或所有已过期或其他原因的瞬变 li>
ul>