set env and disable view cache