Fix notice-level error when cache not configured