Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
WP Plugins
WP Redis User Session Storage
Commits
d6351579
Commit
d6351579
authored
Jun 04, 2019
by
Erick Hitter
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into 'master'
Implement "drop_sessions()" method See merge request
!2
parents
5718ddd7
8c55298d
Pipeline
#3562
failed with stage
in 2 minutes and 43 seconds
Changes
1
Pipelines
23
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
inc/class-wp-redis-user-session-storage.php
inc/class-wp-redis-user-session-storage.php
+15
-2
No files found.
inc/class-wp-redis-user-session-storage.php
View file @
d6351579
...
...
@@ -239,9 +239,23 @@ class WP_Redis_User_Session_Storage extends WP_Session_Tokens {
* @since 0.1
* @access public
* @static
*
* @return bool
*/
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 {
/**
* Override Core's default usermeta-based token storage
*
* @filter session_token_manager
* @return string
*/
function
wp_redis_user_session_storage
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment