cody 2 years ago
parent 466128a61b
commit a06ac39cd6

@ -69,7 +69,7 @@ class HomeController extends CommonController
$factor = FactorItems::where('factor_id', $product->statistic_factor_id)->get();
$order_total = OrderItems::whereIn('product_item_id', $productItem->pluck('id'))->sum('total');
$lies = Cache::remember('lies', 24 * 60 * 60, function () use ($productItem, $factor, $order_total) {
$lies = Cache::remember('lies', 1, function () use ($productItem, $factor, $order_total) {
return $this->getLies($productItem, $factor, $order_total);
});

Loading…
Cancel
Save