MDL-41942 course: Allow course listings to work with caches disabled