函数文档

wp_cache_set_sites_last_changed()

💡 云策文档标注

概述

wp_cache_set_sites_last_changed() 函数用于设置 'sites' 缓存组的最后更改时间,通过调用 wp_cache_set_last_changed() 实现,确保缓存失效和更新。

关键要点

  • 函数 wp_cache_set_sites_last_changed() 设置 'sites' 缓存组的最后更改时间。
  • 内部调用 wp_cache_set_last_changed('sites') 来执行具体操作。
  • 相关函数包括 wp_cache_set_last_changed()、populate_site_meta()、wpmu_create_blog() 和 clean_blog_cache()。
  • 该函数自 WordPress 5.1.0 版本引入。

📄 原文内容

Sets the last changed time for the ‘sites’ cache group.

Source

function wp_cache_set_sites_last_changed() {
	wp_cache_set_last_changed( 'sites' );
}

Changelog

Version Description
5.1.0 Introduced.