openedx.core.djangoapps.course_apps.management.commands package#

Submodules#

openedx.core.djangoapps.course_apps.management.commands.cache_course_app_status module#

Management command to cache course apps status in the databse.

class openedx.core.djangoapps.course_apps.management.commands.cache_course_app_status.Command(stdout=None, stderr=None, no_color=False, force_color=False)#

Bases: BaseCommand

Command to cache status of course apps to the database to speed up queries.

If no arguments are provided, update cache for all courses. This can be run as a one-off command. If new plugins are installed or existing plugins are uninstalled, the status of those will be cached on first access so re-running this isn’t necessary.

Examples

./manage.py lms cache_course_app_status ./manage.py lms cache_course_app_status course-v1:edX+DemoX+Demo_Course course-v1:edX+CS101+T22021

add_arguments(parser)#

Add argument to the command parser.

handle(*args, **options)#

Handle the cache course app status command.

help = "\nCommand to cache status of course apps to the database to speed up queries.\n\nIf no arguments are provided, update cache for all courses.\nThis can be run as a one-off command. If new plugins are installed or existing plugins are uninstalled, the\nstatus of those will be cached on first access so re-running this isn't necessary.\n\n\nExamples:\n\n    ./manage.py lms cache_course_app_status\n    ./manage.py lms cache_course_app_status course-v1:edX+DemoX+Demo_Course course-v1:edX+CS101+T22021\n"#

Module contents#