correcting config option check on generating cache key