Skip to content
Snippets Groups Projects
Commit 8629c6b6 authored by Erick Hitter's avatar Erick Hitter
Browse files

Add method to clear all tokens

parent 5718ddd7
No related branches found
No related tags found
1 merge request!2Implement "drop_sessions()" method
This commit is part of merge request !2. Comments created here will be created in the context of that merge request.
......@@ -239,9 +239,19 @@ 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.
*
* @return bool
*/
protected function flush_redis_db() {
return $this->redis->flushDB();
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment