Fixed instructor dashboard by conditionalizing caching