mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2025-07-02 11:15:24 +02:00
Change the cache key abit and extended cache time
This commit is contained in:
@ -32,6 +32,11 @@ def make_cache_key(*args, **kwargs):
|
||||
sess = generate_session_key()
|
||||
return (path + args + sess + ip).encode('utf-8')
|
||||
|
||||
def make_user_cache_key(*args, **kwargs)
|
||||
ip = get_client_ipaddr()
|
||||
sess = generate_session_key()
|
||||
return (sess + ip).encode('utf-8')
|
||||
|
||||
def make_guilds_cache_key():
|
||||
sess = generate_session_key()
|
||||
ip = get_client_ipaddr()
|
||||
|
Reference in New Issue
Block a user