perf(organizations): cache and instrument API responses
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user