fix: 去除启动时cache_areas_info

This commit is contained in:
caoqianming 2023-09-12 08:08:40 +08:00
parent 42760f1501
commit 6e06a9ea1d
1 changed files with 4 additions and 4 deletions

View File

@ -6,8 +6,8 @@ class AmConfig(AppConfig):
name = 'apps.am' name = 'apps.am'
def ready(self) -> None: def ready(self) -> None:
if cache.get('cache_areas_need_task', True): # if cache.get('cache_areas_need_task', True):
from apps.am.tasks import cache_areas_info # from apps.am.tasks import cache_areas_info
cache_areas_info.delay() # cache_areas_info.delay()
cache.set('cache_areas_need_task', False, timeout=30) # cache.set('cache_areas_need_task', False, timeout=30)
return super().ready() return super().ready()