WordPress 瞬态

发布于 2024-09-06 16:25:03 字数 177 浏览 2 评论 0原文

我正在尝试学习一些新的数据库技术,目前,我有机会应用和尝试新的东西。

Wordpress 创造了它的一些值:“瞬态”并将其锁定到一个关键值。

示例值:

a:20:{i:-1273996637;i:1284;i:-1273997086;}

我想知道的是如何创建这些值的概念。

I am trying to learn some new database techniques and at the moment, I have a opportunity to apply and try something new.

Wordpress coined some of it's values: "transient" and lock it on to a key value.

Example Value:

a:20:{i:-1273996637;i:1284;i:-1273997086;}

What I like to know is the concept on how these values are created.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

硬不硬你别怂 2024-09-13 16:25:03

WordPress 中的术语“瞬态”是缓存的临时数据。数据有一个过期时间戳,因此在指定的时间间隔后会自动删除。

在数据库中存储缓存数据的简单且标准化的方法
暂时给它一个自定义名称
以及一个时间范围,在此之后它将
过期并删除。

所以回答你的问题:某些插件(或 WP 本身)出于某种目的存储了这些数据,但它会在某个时候被自动清除。

您可以在此处阅读完整详细信息:Transients API

The term "Transient" in WordPress is cached, temporary data. The data has an expiry timestamp, so it will be automatically deleted after a specified interval.

a simple and standardized way of storing cached data in the database
temporarily by giving it a custom name
and a timeframe after which it will
expire and deleted.

So to answer your question: Some plugin (or WP itself) stored this data for some purpose, but it will be automatically purged at some point.

You can read the full details here: Transients API

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文