set NO_CACHE on login, remove it on logout