Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
7da42ec7
Commit
7da42ec7
authored
May 25, 2016
by
Nimisha Asthagiri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hotfix: Revert block structure caching changes
parent
05db9830
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
openedx/core/djangoapps/content/course_structures/tasks.py
+2
-2
No files found.
openedx/core/djangoapps/content/course_structures/tasks.py
View file @
7da42ec7
...
...
@@ -97,7 +97,7 @@ def update_course_structure(course_key):
structure_model
.
discussion_id_map_json
=
discussion_id_map_json
structure_model
.
save
()
# TODO (TNL-4630) For temporary hotfix to
upda
te the block_structure cache.
# TODO (TNL-4630) For temporary hotfix to
dele
te the block_structure cache.
# Should be moved to proper location.
from
django.core.cache
import
cache
from
openedx.core.lib.block_structure.manager
import
BlockStructureManager
...
...
@@ -105,4 +105,4 @@ def update_course_structure(course_key):
store
=
modulestore
()
course_usage_key
=
store
.
make_course_usage_key
(
course_key
)
block_structure_manager
=
BlockStructureManager
(
course_usage_key
,
store
,
cache
)
block_structure_manager
.
update_collected
()
block_structure_manager
.
clear
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment