Skip to content
This repository has been archived by the owner on Nov 23, 2023. It is now read-only.

Commit

Permalink
Merge pull request #2531 from guardian/slow-down-archive-time
Browse files Browse the repository at this point in the history
Reduce the number of Eventbrite API calls by slowing the refresh schedule for the archive
  • Loading branch information
paulbrown1982 committed Nov 13, 2023
2 parents cebaee4 + 597403b commit 59366ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/app/services/EventbriteService.scala
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ abstract class EventbriteService(ebAccount: EBAccount)(
// goal here is to keep the downstream cache warm (AWS CloudFront - ttl 61s).
lazy val eventsTask = eventsTaskFor("live", 1.second, Config.eventbriteRefreshTime.seconds)

lazy val archivedEventsTask = eventsTaskFor("ended", 29.seconds, 3600.seconds)
lazy val archivedEventsTask = eventsTaskFor("ended", 29.seconds, 7200.seconds)

lazy val draftEventsTask = eventsTaskFor("draft", 59.seconds, Config.eventbriteRefreshTime.seconds)

Expand Down

0 comments on commit 59366ab

Please sign in to comment.