Commit 92318ccc by Robert Raposa Committed by GitHub

Merge pull request #16217 from edx/robrap/fix-outline-caching

LEARNER-2819: Fix caching of course_outline_root_block.
parents 87b43ba0 1a66ae36
......@@ -5,11 +5,11 @@ from opaque_keys.edx.keys import CourseKey
from lms.djangoapps.course_api.blocks.api import get_blocks
from lms.djangoapps.course_blocks.utils import get_student_module_as_dict
from openedx.core.lib.cache_utils import memoized
from request_cache.middleware import request_cached
from xmodule.modulestore.django import modulestore
@memoized
@request_cached
def get_course_outline_block_tree(request, course_id):
"""
Returns the root block of the course outline, with children as blocks.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment