Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
benjackwhite committed Dec 17, 2024
1 parent 1152ab8 commit 566ca14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions posthog/models/remote_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,8 +386,6 @@ def _purge_cdn(self):
):
return

logger.info(f"Purging CDN for team {self.team_id}")

data: dict[str, Any] = {"files": []}

for domain in settings.REMOTE_CONFIG_CDN_PURGE_DOMAINS:
Expand All @@ -397,6 +395,8 @@ def _purge_cdn(self):
data["files"].append({"url": f"{full_domain}/array/{self.team.api_token}/config.js"})
data["files"].append({"url": f"{full_domain}/array/{self.team.api_token}/array.js"})

logger.info(f"Purging CDN for team {self.team_id}", {"data": data})

try:
res = requests.post(
settings.REMOTE_CONFIG_CDN_PURGE_ENDPOINT,
Expand Down

0 comments on commit 566ca14

Please sign in to comment.