wp_cache_flush_runtime()
云策文档标注
概述
wp_cache_flush_runtime() 函数用于清除内存中的运行时缓存项,是 wp_cache_flush() 的别名,返回操作成功与否的布尔值。
关键要点
- 清除所有内存运行时缓存项
- 返回布尔值:成功为 true,失败为 false
- 是 wp_cache_flush() 的别名,内部直接调用该函数
- 自 WordPress 6.0.0 版本引入
注意事项
- 仅影响运行时缓存,不持久化到数据库或其他存储
- 相关函数包括 wp_cache_flush(),位于 wp-includes/cache.php
原文内容
Removes all cache items from the in-memory runtime cache.
Description
See also
Source
function wp_cache_flush_runtime() {
return wp_cache_flush();
}
Changelog
| Version | Description |
|---|---|
| 6.0.0 | Introduced. |