Only check for / return cache if it is enabled.