Skip to content

Commit e7db0d8

Browse files
feanilclaude
andcommitted
refactor: migrate EXPOSE_CACHE_PROGRAMS_ENDPOINT off FEATURES-as-dict
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent b469876 commit e7db0d8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

openedx/core/djangoapps/catalog/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def cache_programs(request):
1818
# checks that does site has configuration if not then
1919
# add a configuration with COURSE_CATALOG_API_URL parameter.
2020

21-
if settings.FEATURES.get('EXPOSE_CACHE_PROGRAMS_ENDPOINT'):
21+
if getattr(settings, 'EXPOSE_CACHE_PROGRAMS_ENDPOINT', False):
2222
call_command('cache_programs')
2323

2424
return HttpResponse('Programs cached.')

0 commit comments

Comments
 (0)