Commit 8629c6b6 authored by Erick Hitter's avatar Erick Hitter

Add method to clear all tokens

parent 5718ddd7
......@@ -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();
}
/**
......
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