[Update] 仪表盘缓存key添加组织id

pull/3987/head
Bai 2020-05-11 15:12:42 +08:00
parent 2f030c02ec
commit 0a8eeca629
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ class MonthLoginMetricMixin:
@staticmethod
def get_cache_key(date, tp):
date_str = date.strftime("%Y%m%d")
key = "SESSION_MONTH_{}_{}".format(tp, date_str)
key = "SESSION_MONTH_{}_{}_{}".format(current_org.id, tp, date_str)
return key
def __get_data_from_cache(self, date, tp):