1. Jeffrey Olmstead
  2. Nwazet.Commerce

Commits

Bertrand Le Roy  committed a56b77c

Suppress caching on order status page

  • Participants
  • Parent commits d6af43f
  • Branches default

Comments (0)

Files changed (1)

File Controllers/OrderSslController.cs

View file
  • Ignore whitespace
             _addressFormatter = addressFormatter;
         }
 
+        [OutputCache(NoStore = true, Duration = 0)]
         public ActionResult Confirmation() {
             if (!TempData.ContainsKey("OrderId")) {
                 return HttpNotFound();
             }
             var orderId = TempData["OrderId"];
             TempData.Keep("OrderId");
-            var order = _contentManager.Get<OrderPart>((int)orderId);
+            var order = _contentManager.Get<OrderPart>((int) orderId);
             var billingAddress = _addressFormatter.Format(order.BillingAddress);
             var shippingAddress = _addressFormatter.Format(order.ShippingAddress);
             var products = _contentManager
             return new ShapeResult(this, shape);
         }
 
+        [OutputCache(NoStore = true, Duration = 0)]
         public ActionResult Show(int id) {
             if (TempData.ContainsKey("OrderId")) {
                 return Confirmation();
             return RedirectToAction("Show", new {id});
         }
     }
-}
+}