add lru cache to _get_route_data()

This commit is contained in:
Jimmy Zelinskie 2016-01-08 16:22:17 -05:00
parent b9821290f6
commit 559a55b1de

View file

@ -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: