changed azure cache check

now it just uses azure cache in the production environment