Add cache management for medias
mend