mirror of https://github.com/jumpserver/jumpserver
fix: 修复仪表盘失败连接数不更新的问题
parent
5153817ff4
commit
889542079c
|
@ -102,7 +102,7 @@ def on_post_delete_refresh_org_resource_statistics_cache(sender, instance, **kwa
|
||||||
|
|
||||||
|
|
||||||
def _refresh_session_org_resource_statistics_cache(instance: Session):
|
def _refresh_session_org_resource_statistics_cache(instance: Session):
|
||||||
cache_field_name = ['total_count_online_users', 'total_count_online_sessions']
|
cache_field_name = ['total_count_online_users', 'total_count_online_sessions', 'total_count_today_failed_sessions']
|
||||||
|
|
||||||
org_cache = OrgResourceStatisticsCache(instance.org)
|
org_cache = OrgResourceStatisticsCache(instance.org)
|
||||||
org_cache.expire(*cache_field_name)
|
org_cache.expire(*cache_field_name)
|
||||||
|
|
Loading…
Reference in New Issue