更新bug
This commit is contained in:
+4
-3
@@ -114,9 +114,10 @@ class AdminAuthCache extends BaseCache
|
||||
*/
|
||||
public function clearAuthCache()
|
||||
{
|
||||
$this->tag($this->cacheUrlKey)->clear();
|
||||
return true;
|
||||
// BaseCache::set() 使用类名作为标签,并没有使用 cacheUrlKey 作为标签;
|
||||
// 这里必须直接删除单账号缓存键,否则角色变更后旧权限会继续保留一小时。
|
||||
return $this->delete($this->cacheUrlKey);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user