From 6e06a9ea1db946a0790019fb3405eb9615a2306b Mon Sep 17 00:00:00 2001 From: caoqianming Date: Tue, 12 Sep 2023 08:08:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8E=BB=E9=99=A4=E5=90=AF=E5=8A=A8?= =?UTF-8?q?=E6=97=B6cache=5Fareas=5Finfo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/am/apps.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/am/apps.py b/apps/am/apps.py index c6b8cba9..c9eecb9d 100755 --- a/apps/am/apps.py +++ b/apps/am/apps.py @@ -6,8 +6,8 @@ class AmConfig(AppConfig): name = 'apps.am' def ready(self) -> None: - if cache.get('cache_areas_need_task', True): - from apps.am.tasks import cache_areas_info - cache_areas_info.delay() - cache.set('cache_areas_need_task', False, timeout=30) + # if cache.get('cache_areas_need_task', True): + # from apps.am.tasks import cache_areas_info + # cache_areas_info.delay() + # cache.set('cache_areas_need_task', False, timeout=30) return super().ready()