Added render to add a custom caching dir (3rd param)