From 0fc6b6f6edc9c114f5138a427ca2714123284c2c Mon Sep 17 00:00:00 2001 From: Tanmoy Sarkar <57363826+tanmoysrt@users.noreply.github.com> Date: Mon, 8 Jan 2024 18:13:55 +0530 Subject: [PATCH] fix: use expires_in_sec with set_value of cache --- frappe/push_notification.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/push_notification.py b/frappe/push_notification.py index 8e2a386687..d87716af5a 100644 --- a/frappe/push_notification.py +++ b/frappe/push_notification.py @@ -189,7 +189,7 @@ class PushNotification: # Generate new credentials token = frappe.generate_hash(length=48) # store the token in the redis cache - frappe.cache().set_value(f"{self._site_name}:push_relay_registration_token", token, ex=600) + frappe.cache().set_value(f"{self._site_name}:push_relay_registration_token", token, expires_in_sec=600) body = { "endpoint": self._site_name, "protocol": self._site_protocol,