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
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
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
d6351579
Commit
d6351579
authored
6 years ago
by
Erick Hitter
Browse files
Options
Downloads
Plain Diff
Merge branch 'develop' into 'master'
Implement "drop_sessions()" method See merge request
!2
parents
5718ddd7
8c55298d
No related branches found
No related tags found
1 merge request
!2
Implement "drop_sessions()" method
Pipeline
#4994
failed
2 years ago
Stage: test
Changes
1
Pipelines
38
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
inc/class-wp-redis-user-session-storage.php
+15
-2
15 additions, 2 deletions
inc/class-wp-redis-user-session-storage.php
with
15 additions
and
2 deletions
inc/class-wp-redis-user-session-storage.php
+
15
−
2
View file @
d6351579
...
@@ -239,9 +239,23 @@ class WP_Redis_User_Session_Storage extends WP_Session_Tokens {
...
@@ -239,9 +239,23 @@ class WP_Redis_User_Session_Storage extends WP_Session_Tokens {
* @since 0.1
* @since 0.1
* @access public
* @access public
* @static
* @static
*
* @return bool
*/
*/
public
static
function
drop_sessions
()
{
public
static
function
drop_sessions
()
{
return
false
;
return
static
::
get_instance
(
0
)
->
flush_redis_db
();
}
/**
* Empty database, clearing all tokens.
*
* @since 0.2
* @access protected
*
* @return bool
*/
protected
function
flush_redis_db
()
{
return
$this
->
redis
->
flushDB
();
}
}
/**
/**
...
@@ -260,7 +274,6 @@ class WP_Redis_User_Session_Storage extends WP_Session_Tokens {
...
@@ -260,7 +274,6 @@ class WP_Redis_User_Session_Storage extends WP_Session_Tokens {
/**
/**
* Override Core's default usermeta-based token storage
* Override Core's default usermeta-based token storage
*
*
* @filter session_token_manager
* @return string
* @return string
*/
*/
function
wp_redis_user_session_storage
()
{
function
wp_redis_user_session_storage
()
{
...
...
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