定制 ethitter/wp-redis-user-session-storage 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ethitter/wp-redis-user-session-storage

最新稳定版本:v0.2

Composer 安装命令:

composer require ethitter/wp-redis-user-session-storage

包简介

Store WordPress session tokens in Redis rather than the usermeta table. Requires the Redis PECL extension.

README 文档

README

Contributors: ethitter
Donate link: https://ethitter.com/donate/
Tags: user sessions, session tokens, session storage
Requires at least: 4.0
Tested up to: 6.0
Stable tag: 0.2
Requires PHP: 5.6
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Store WordPress session tokens in Redis rather than the usermeta table.

Description

Store WordPress user session tokens in Redis rather than the usermeta table.

This plugin was previously known as WP Redis User Session Storage and was renamed to comply with WordPress.org naming constraints. The previous class name is aliased to support existing extensions.

Installation

  1. Install and configure Redis.
  2. Install the Redis PECL module.
  3. Activate the plugin network-wide or by placing it in mu-plugins.
  4. By default, the script will connect to Redis at 127.0.0.1:6379. See the Connecting to Redis section for further options.

Frequently Asked Questions

Connecting to Redis

By default, the plugin uses 127.0.0.1 and 6379 as the default host and port, respectively, when creating a new client instance; the default database of 0 is also used.

Specify any of the following constants to set the necessary, non-default connection values for your Redis instance:

  • WP_REDIS_USER_SESSION_HOST - Hostname or IP of the Redis server, defaults to 127.0.0.1.
  • WP_REDIS_USER_SESSION_PORT - Port of the Redis server, defaults to 6379.
  • WP_REDIS_USER_SESSION_SOCKET - Path to a Unix socket file for the Redis server, if available. Takes precedence over the port value when set.
  • WP_REDIS_USER_SESSION_AUTH - Password for the Redis server, if required.
  • WP_REDIS_USER_SESSION_DB - Database number to use for the Redis server, defaults to 0.
  • WP_REDIS_USER_SESSION_SERIALIZER - Serializer to use for the Redis server, defaults to Redis::SERIALIZER_PHP.

Changelog

0.2

  • Add cleanup routine for usermeta storage.
  • Prepare plugin for WordPress.org release.

0.1

  • Initial public release

统计信息

  • 总下载量: 44
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0
  • 更新时间: 2022-07-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固