ESDEV-2010 Finish Checkout process optimization. Moved cache clearing method out to a separate method. Added usage of optional parameter to sometimes skip cache clearing procedure.