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
+6
View File
@@ -62,6 +62,8 @@ def test_news_sanitize_strips_html(local_db, capsys):
uid = generate_uid()
get_table("news").insert(
{
"deleted_at": None,
"deleted_by": None,
"uid": uid,
"description": "<b>Bold</b> &amp; clean",
"content": "<p>Body</p>",
@@ -80,6 +82,8 @@ def test_attachments_prune_removes_only_stale_orphans(local_db, capsys):
attachments = get_table("attachments")
attachments.insert(
{
"deleted_at": None,
"deleted_by": None,
"uid": old_uid,
"target_type": "",
"target_uid": "",
@@ -88,6 +92,8 @@ def test_attachments_prune_removes_only_stale_orphans(local_db, capsys):
)
attachments.insert(
{
"deleted_at": None,
"deleted_by": None,
"uid": fresh_uid,
"target_type": "",
"target_uid": "",