Set preview cache before save