Skip to content

Commit

Permalink
clear cloudfront caches after updating adoptions
Browse files Browse the repository at this point in the history
  • Loading branch information
mwvolo committed Oct 30, 2024
1 parent baa80d2 commit 91ed888
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions salesforce/management/commands/update_opportunities.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from django.core.management.base import BaseCommand
from salesforce.models import AdoptionOpportunityRecord
from salesforce.salesforce import Salesforce
from global_settings.functions import invalidate_cloudfront_caches
import sentry_sdk
from sentry_sdk.crons import monitor

Expand Down Expand Up @@ -77,3 +78,5 @@ def handle(self, *args, **options):
results = sf.bulk.Adoption__c.query(updated_records)
self.process_results(results)

invalidate_cloudfront_caches('salesforce/renewal')

0 comments on commit 91ed888

Please sign in to comment.