From e18fd312f6d4e332f6f7285d8d9e44a670c6184a Mon Sep 17 00:00:00 2001 From: pengtao Date: Wed, 9 Oct 2019 16:10:36 +0800 Subject: [PATCH] =?UTF-8?q?delete=E6=93=8D=E4=BD=9C=E4=B8=8D=E8=A7=A6?= =?UTF-8?q?=E5=8F=91=20rebuild=20cache?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- handler/ad.py | 1 + 1 file changed, 1 insertion(+) diff --git a/handler/ad.py b/handler/ad.py index 5f7b93b..c3c2422 100644 --- a/handler/ad.py +++ b/handler/ad.py @@ -208,6 +208,7 @@ class Ad(Resource): condition = f"id='{self.args['id']}'" self.mydb.update("ad", ad, condition) if rebuild_ad(): + log.info(f"rebuild cache via ad change!") return jsonify({'code': 200, 'message': 'update adid={id} success!'}) else: return jsonify({'code': 500, 'message': 'rebuild cache failed!'})