@task(name=u'openedx.core.djangoapps.bookmarks.tasks.update_xblock_cache')
def update_xblocks_cache(course_id):
 if (not isinstance(course_id, basestring)):
  raise ValueError('course_id must be a string. {} is not acceptable.'.format(type(course_id)))
 course_key = CourseKey.from_string(course_id)
 log.info(u'Starting XBlockCaches update for course_key: %s', course_id)
 _update_xblocks_cache(course_key)
 log.info(u'Ending XBlockCaches update for course_key: %s', course_id)

@ task ( name = u'openedx.core.djangoapps.bookmarks.tasks.update_xblock_cache' ) def update_xblocks_cache ( course_id ) : if ( not isinstance ( course_id , basestring ) ) : raise ValueError ( 'course_id must be a string. {} is not acceptable.' . format ( type ( course_id ) ) ) course_key = CourseKey . from_string ( course_id ) log . info ( u'Starting XBlockCaches update for course_key: %s' , course_id ) _update_xblocks_cache ( course_key ) log . info ( u'Ending XBlockCaches update for course_key: %s' , course_id )
update the xblocks cache for a course .