perf: Use system settings for fetching expiry
It's just copy of the same data. IMO sys settings is always the "true" source of truth.
This commit is contained in:
parent
2af6eedec9
commit
03036bfc91
1 changed files with 1 additions and 1 deletions
|
|
@ -451,7 +451,7 @@ def get_expired_threshold():
|
|||
|
||||
|
||||
def get_expiry_period():
|
||||
exp_sec = frappe.defaults.get_global_default("session_expiry") or "240:00:00"
|
||||
exp_sec = frappe.get_system_settings("session_expiry") or "240:00:00"
|
||||
|
||||
# incase seconds is missing
|
||||
if len(exp_sec.split(":")) == 2:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue