perf(organizations): cache and instrument API responses

This commit is contained in:
2026-05-14 16:14:45 +02:00
parent 6d1ec2e55c
commit 5fdd23ecc0
13 changed files with 603 additions and 33 deletions

View File

@@ -6,6 +6,7 @@ import json
from apps.core.management.commands.base import BaseAppCommand
from organizations.cache import invalidate_organization_api_cache
from organizations.services import OrganizationDataSnapshotRefreshService
@@ -36,6 +37,7 @@ class Command(BaseAppCommand):
organization_uids=options.get("uids"),
batch_size=options["batch_size"],
)
invalidate_organization_api_cache()
rendered = json.dumps(
{
"processed": result.processed,