feat: add TTLCache for get_cache_version and TEMPLATE_AUTO_RELOAD config with Makefile worker count variables

This commit is contained in:
2026-06-14 14:46:36 +00:00
parent c151325916
commit d75d5dc6a8
149 changed files with 9811 additions and 262 deletions
+2 -2
View File
@@ -9,7 +9,7 @@ from devplacepy.templating import templates
from devplacepy.utils import (
create_session,
get_current_user,
register_account,
register_account_async,
)
from devplacepy.seo import base_seo_context
from devplacepy.models import SignupForm
@@ -90,7 +90,7 @@ async def signup(request: Request, data: Annotated[SignupForm, Form()]):
},
)
uid, role, is_first = register_account(username, email, password)
uid, role, is_first = await register_account_async(username, email, password)
max_age = max(1, get_int_setting("session_max_age_days", 7)) * SECONDS_PER_DAY
token = create_session(uid, max_age)