MDL-29594 enrol: implemented cache for course enrolment icons