made cacheing depend on production environment variable