learning-unlimited/ESP-Website — Issue #264: Migrate remaining program/class function level caching
Author: pricem
Created: 2012-01-19 01:42:07+00:00
State: open

We have a lot of code in esp/esp/program/models/__init__.py and esp/esp/program/models/class_.py that does low-level cache operations without appropriate dependencies. This code dates from the days in which we were desperately trying to make the original scheduling module faster, at which point our caching API didn't exist. We need to cut out all of the stuff like "cache_key = "CLASSSECTION__SUFFICIENT_LENGTH__%s" % self.id" and ClassSection.clear_resource_cache() and start using the @cache_function decorator and proper dependencies.