There were technical problems while the request was being processed!
Executed Request:
Search
Technical Details: TypeError: Cannot set property "applyPromotionSensitiveCache" of undefined to " function applyPromotionSensitiveCache(req, res, next) { var isTileorProduct = req.path && (req.path.indexOf("Search-Show") >= 0 || req.path.indexOf("Tile-Show") >= 0 || req.path.indexOf("Product-Show") >= 0); var product = null; if (isTileorProduct) { var ProductFactory = require("*/cartridge/scripts/factories/product"); var promoRsvParams = req.path.indexOf("Search-Show") >= 0 || req.path.indexOf("Tile-Show") >= 0 || req.path.indexOf("Product-ShowInCategory") >= 0 ? {pview: "promoRsv"} : {}; if (req.path.indexOf("Search-Show") >= 0) { promoRsvParams.routeStart = "search"; } else { if (req.path.indexOf("Tile-Show") >= 0) { promoRsvParams.routeStart = "tile"; } else { if (req.path.indexOf("Product-ShowInCategory") >= 0) { promoRsvParams.routeStart = "product"; } } } Object.keys(req.querystring).forEach(function (key) { promoRsvParams[key] = req.querystring[key]; }); product = ProductFactory.get(promoRsvParams); } if (!empty(product) && product.hasPromoReservedActive) { res.cachePeriod = 0; res.cachePeriodUnit = "minutes"; res.personalized = true; } else { res.cachePeriod = 24; res.cachePeriodUnit = "hours"; res.personalized = true; } next(); } " (int_common/cartridge/scripts/middleware/cache.js#47)