cache gallery retrieval