Download the PHP package metabolism/wp-redis-user-session-storage without Composer
On this page you can find all versions of the php package metabolism/wp-redis-user-session-storage. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download metabolism/wp-redis-user-session-storage
More information about metabolism/wp-redis-user-session-storage
Files in metabolism/wp-redis-user-session-storage
Package wp-redis-user-session-storage
Short Description Store WordPress user session tokens in Redis rather than the usermeta table. Requires PECL Redis library.
License
Homepage https://github.com/ethitter/WP-Redis-User-Session-Storage
Informations about the package wp-redis-user-session-storage
Overview
Store WordPress user session tokens in Redis rather than the usermeta table. Requires PECL Redis library.
Requires WordPress 4.0, which should be released soon but isn’t currently suitable for production sites. In the meantime, everything is subject to change.
Authors
- Erick Hitter
Installation
- Install and configure Redis. There is a good tutorial here.
- Install the Redis PECL module.
- Activate the plugin network-wide or by placing it in
mu-plugins
. - By default, the script will connect to Redis at 127.0.0.1:6379. See the Connecting to Redis section for further options.
Connecting to Redis
By default, the plugin uses 127.0.0.1
and 6379
as the default host and port when creating a new client instance; the default database of 0
is also used. Three constants are provided to override these default values.
Specify WP_REDIS_USER_SESSION_HOST
, WP_REDIS_USER_SESSION_PORT
, and WP_REDIS_USER_SESSION_DB
to set the necessary, non-default connection values for your Redis instance.