Only check layergroup configuration when unknown by redis

See #2776, we may opt to add an LRU cache too