Skip to content

Commit

Permalink
fix: reduce cache timeout for licenses and enrollments (#608)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamstankiewicz authored Dec 4, 2024
1 parent 24873c3 commit ec0bef8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions enterprise_access/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,10 +511,10 @@ def root(*path_fragments):
CONTENT_METADATA_CACHE_TIMEOUT = 60 * 30 # 30 minutes
ENTERPRISE_USER_RECORD_CACHE_TIMEOUT = 60 * 10 # 10 minutes
SUBSIDY_AGGREGATES_CACHE_TIMEOUT = 60 * 10 # 10 minutes
SUBSCRIPTION_LICENSES_LEARNER_CACHE_TIMEOUT = 60 * 2 # 2 minutes
SUBSCRIPTION_LICENSES_LEARNER_CACHE_TIMEOUT = 60 * 1 # 1 minute
ENTERPRISE_COURSE_ENROLLMENTS_CACHE_TIMEOUT = 0 # 0 seconds (no caching, as enrollments may be mutated frequently)
SUBSIDY_RECORD_CACHE_TIMEOUT = DEFAULT_CACHE_TIMEOUT
DEFAULT_ENTERPRISE_ENROLLMENT_INTENTIONS_CACHE_TIMEOUT = DEFAULT_CACHE_TIMEOUT
ENTERPRISE_COURSE_ENROLLMENTS_CACHE_TIMEOUT = DEFAULT_CACHE_TIMEOUT
ALL_ENTERPRISE_GROUP_MEMBERS_CACHE_TIMEOUT = DEFAULT_CACHE_TIMEOUT

BRAZE_GROUP_EMAIL_FORCE_REMIND_ALL_PENDING_LEARNERS = False
Expand Down

0 comments on commit ec0bef8

Please sign in to comment.