Remove an unnecessary global

The _DISCUSSIONINFO global was originally used as a cache, but has since
lost that capability and is therefore just harmful. This is a precursor
to more refactoring that will improve the performance of the forums and
may itself provide some performance improvement because it separates the
computation done by two functions that each previously computed the
entirety of _DISCUSSIONINFO.
This commit is contained in:
Greg Price
2013-10-25 17:17:24 -04:00
parent 545701d520
commit a7d769dfea
2 changed files with 29 additions and 35 deletions

View File

@@ -108,7 +108,7 @@ class CoursewareContextTestCase(ModuleStoreTestCase):
)
test_discussion(self.discussion1, "Chapter / Discussion 1")
test_discussion(self.discussion2, " Subsection / Discussion 2")
test_discussion(self.discussion2, "Subsection / Discussion 2")
@override_settings(MODULESTORE=TEST_DATA_MONGO_MODULESTORE)