cache for photogalleries