Merge pull request #1000 from edx/fix/cdodge/courseware-index-perf-tweek
Fix/cdodge/courseware index perf tweek
This commit is contained in:
@@ -375,9 +375,14 @@ def index(request, course_id, chapter=None, section=None,
|
||||
# html, which in general will need all of its children
|
||||
section_field_data_cache = FieldDataCache.cache_for_descriptor_descendents(
|
||||
course_id, user, section_descriptor, depth=None)
|
||||
section_module = get_module(request.user, request,
|
||||
section_descriptor.location,
|
||||
section_field_data_cache, course_id, position, depth=None)
|
||||
|
||||
section_module = get_module_for_descriptor(request.user,
|
||||
request,
|
||||
section_descriptor,
|
||||
section_field_data_cache,
|
||||
course_id,
|
||||
position
|
||||
)
|
||||
|
||||
if section_module is None:
|
||||
# User may be trying to be clever and access something
|
||||
|
||||
Reference in New Issue
Block a user