photogalleries cache fix