Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
Redis User Session Storage
Manage
Activity
Members
Labels
Plan
Issues
1
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WP Plugins
Redis User Session Storage
Commits
f5117731
Commit
f5117731
authored
5 years ago
by
Erick Hitter
Browse files
Options
Downloads
Patches
Plain Diff
Reorganization part two
parent
e71bde42
No related branches found
No related tags found
1 merge request
!1
Coding Standards & Unit-Test Framework
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
inc/class-wp-redis-user-session-storage.php
+5
-22
5 additions, 22 deletions
inc/class-wp-redis-user-session-storage.php
wp-redis-user-session-storage.php
+31
-0
31 additions, 0 deletions
wp-redis-user-session-storage.php
with
36 additions
and
22 deletions
inc/class-wp-redis-user-session-storage.php
+
5
−
22
View file @
f5117731
<?php
/*
Plugin Name: WP Redis User Session Storage
Plugin URI: https://ethitter.com/plugins/wp-redis-user-session-storage/
Description: Store WordPress session tokens in Redis rather than the usermeta table. Requires the Redis PECL extension.
Version: 0.1
Author: Erick Hitter
Author URI: https://ethitter.com/
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
/**
* Offload session storage to Redis.
*
* @package WP_Redis_User_Session_Storage
*/
/**
* Don't load in contexts that lack the WP_Session_Tokens class
...
...
This diff is collapsed.
Click to expand it.
wp-redis-user-session-storage.php
0 → 100644
+
31
−
0
View file @
f5117731
<?php
/**
* Load plugin.
*
* @package WP_Redis_User_Session_Storage
*/
/**
* Plugin Name: WP Redis User Session Storage
* Plugin URI: https://ethitter.com/plugins/wp-redis-user-session-storage/
* Description: Store WordPress session tokens in Redis rather than the usermeta table. Requires the Redis PECL extension.
* Version: 0.1
* Author: Erick Hitter
* Author URI: https://ethitter.com/
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
require_once
__DIR__
.
'/inc/class-wp-redis-user-session-storage.php'
;
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment