set_site_transient()将某个值保留在数据库中一段时间(多站点)

目录

描述

Essentially the same as set_transient() but works network wide when using WP Multisite.

One difference is that the transient name should be 40 characters or less in length. Also, while set_transient() sets transients that have an expiration time to not autoload, all transients added with `set_site_transient` will auto-load at all times.

set_site_transient() 描述

相关