wp_cache_set expire parameter has no effect
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 28/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 领域
- backend, performance
调研方向
首先,在 EasyEngine 4.0.14 上使用 Redis 重现报告中的 wp_cache_set 调用,并观察缓存值是否能在请求的过期时长内持续存在。从该入口追踪 WordPress 缓存集成和 Redis 处理;完成的标准是由 expire 参数控制缓存生命周期,而不是值在大约一分钟后被重置。
由索引模型根据 Issue 内容生成。
描述
latest ee v4.0.14, ubuntu 18
cache works with Redis, but it seems that the expire parameter has no effect.
wp_cache_set( $cache_key, $cache_data, null, MONTH_IN_SECONDS * 2 );
caches the data, but after a short time (a minute maybe), it resets, it seems.
Any clue?
- 主要语言
- PHP
- 星标
- 2.2k
- 派生
- 421
- 平均合并
- 2 天 3 小时
- 30 天内合并 PR
- 10
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
EasyEngine/easyengine 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 70/100
EasyEngine/easyengine#1427 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 25/100
EasyEngine/easyengine#1893 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 38/100
EasyEngine/easyengine#1888 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 25/100
EasyEngine/easyengine#1875 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 35/100
EasyEngine/easyengine#1810 · 2 条评论 · 4 个 reaction ·
维护者通常 1 天内回复
查看 EasyEngine/easyengine 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 62/100
scanaislop/aislop#482 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
documentation
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
humanmade/publication-checklist#73 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 70/100
Werkstattl/OpenBlogware#92 ·