PhpRedis 扩展未安装

后台PHP已安装PHP扩展,但wp还是提示我未安装PhpRedis 扩展。是什么原因呢?

redis插件的诊断信息:
Status: 已连接
Client: Predis (v2.1.2)
Drop-in: Valid
Disabled: No
Ping: PONG
Errors: []
PhpRedis: Not loaded
Relay: Not loaded
Predis: 2.1.2
Credis: Not loaded
PHP Version: 8.2.22
Plugin Version: 2.5.3
Redis Version: 7.4.0
Multisite: No
Metrics: Enabled
Metrics recorded: 43
Filesystem: Writable
Global Prefix: “wp_”
Blog Prefix: “wp_”
Timeout: 1
Read Timeout: 1
Retry Interval:
WP_REDIS_HOST: “redis”
WP_REDIS_PORT: “6379”
WP_REDIS_DATABASE: “0”
WP_REDIS_PLUGIN_PATH: “/var/www/html/wp-content/plugins/redis-cache”
WP_REDIS_PASSWORD: ••••••••
Global Groups: [
“blog-details”,
“blog-id-cache”,
“blog-lookup”,
“global-posts”,
“networks”,
“rss”,
“sites”,
“site-details”,
“site-lookup”,
“site-options”,
“site-transient”,
“users”,
“useremail”,
“userlogins”,
“usermeta”,
“user_meta”,
“userslugs”,
“redis-cache”,
“blog_meta”,
“network-queries”,
“site-queries”,
“theme_files”,
“translation_files”,
“user-queries”
]
Ignored Groups: [
“counts”,
“plugins”,
“theme_json”,
“themes”
]
Unflushable Groups: []
Groups Types: {
“blog-details”: “global”,
“blog-id-cache”: “global”,
“blog-lookup”: “global”,
“global-posts”: “global”,
“networks”: “global”,
“rss”: “global”,
“sites”: “global”,
“site-details”: “global”,
“site-lookup”: “global”,
“site-options”: “global”,
“site-transient”: “global”,
“users”: “global”,
“useremail”: “global”,
“userlogins”: “global”,
“usermeta”: “global”,
“user_meta”: “global”,
“userslugs”: “global”,
“redis-cache”: “global”,
“blog_meta”: “global”,
“network-queries”: “global”,
“site-queries”: “global”,
“theme_files”: “global”,
“translation_files”: “global”,
“user-queries”: “global”,
“counts”: “ignored”,
“plugins”: “ignored”,
“theme_json”: “ignored”,
“themes”: “ignored”
}
Drop-ins: [
“Redis Object Cache Drop-In v2.5.3 by Till Krüss”
]

容器中执行 php -m 看一下 redis 是否存在

我看了,不存在,但我在早期创建PHP运行环境的时候,确实选择了redis。为什么没有呢?


看一下日志 搜一下 Redis