Skip to Content
0
Former Member
Apr 26, 2018 at 01:17 PM

Cart Restoration inCartValidityPeriod

152 Views

Hello Expert, Default configuration for cart cartValidityPeriod=12960000

Now, in cart restoration strategy, in the method "restoreCart", checks isCartInValidityPeriod(cartModel) Which is return new DateTime(cartModel.getModifiedtime()).isAfter(new DateTime(getTimeService().getCurrentTime()) .minusSeconds(getCartValidityPeriod())); This will always return true if the cart is modified within (approx) 150 days (12960000 sec). Since it returns true, the cartModel "Calculated" field will set to false thus cart will be recalculated every now and then which is performance hindrance. As per Wiki, if we want to implement Cart Restoration with Promotion Cache, Wiki has advised to calculate the cart everytime is it loaded by make the cartValidityPeriod=0 which is wrong as the cartinvalidity method will return false and calculated field will not be made false.

Is this a bug? Please advise