From 7f72cd0f974be7e016891db7c745d32da8b1f0bf Mon Sep 17 00:00:00 2001 From: robert schouten Date: Tue, 6 Dec 2016 08:51:40 +0800 Subject: [PATCH] [fix] email digest cache by frequency --- erpnext/setup/doctype/email_digest/email_digest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/setup/doctype/email_digest/email_digest.py b/erpnext/setup/doctype/email_digest/email_digest.py index ac999ed23b..a7dfa7cb31 100644 --- a/erpnext/setup/doctype/email_digest/email_digest.py +++ b/erpnext/setup/doctype/email_digest/email_digest.py @@ -233,7 +233,7 @@ class EmailDigest(Document): "new_quotations","pending_quotations","sales_order","purchase_order","pending_sales_orders","pending_purchase_orders", "invoiced_amount", "payables", "bank_balance", "credit_balance"): if self.get(key): - cache_key = "email_digest:card:{0}:{1}".format(self.company, key) + cache_key = "email_digest:card:{0}:{1}:{2}".format(self.company, self.frequency, key) card = cache.get(cache_key) if card: