perf: While Asset amount (GLOBAL) > 5000 delay (20s) refresh user perm tree

This commit is contained in:
Bai 2024-05-10 12:36:43 +08:00 committed by Bryan
parent 92b6286feb
commit 94ee3169dc

View File

@ -67,5 +67,5 @@ def set_assets_size_to_setting(sender, **kwargs):
if amount > 20000:
settings.ASSET_SIZE = 'large'
elif amount > 2000:
elif amount > 5000:
settings.ASSET_SIZE = 'medium'