add lru cache to _get_route_data()
This commit is contained in:
parent
b9821290f6
commit
559a55b1de
1 changed files with 1 additions and 0 deletions
|
@ -41,6 +41,7 @@ from util.useremails import send_email_changed
|
|||
|
||||
_route_data = None
|
||||
|
||||
@lru_cache(maxsize=1)
|
||||
def _get_route_data():
|
||||
global _route_data
|
||||
if _route_data:
|
||||
|
|
Reference in a new issue