Commit d6351579 authored by Erick Hitter's avatar Erick Hitter

Merge branch 'develop' into 'master'

Implement "drop_sessions()" method

See merge request !2
parents 5718ddd7 8c55298d
Pipeline #1231 passed with stage
in 3 minutes and 37 seconds
......@@ -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() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment