更新bug

This commit is contained in:
Your Name
2026-08-17 09:06:49 +08:00
parent 2fc8048844
commit c1eee2d28a
48 changed files with 3646 additions and 1016 deletions
+4 -3
View File
@@ -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);
}
}
}