From 82b5496388f9a2230f05d671c4f9753e3b78de2e Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Mon, 7 Nov 2016 17:10:27 +0200 Subject: [PATCH] big commti --- frontend/controllers/CatalogController.php | 4 ++-- frontend/models/ProductFrontendSearch.php | 6 ------ 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/frontend/controllers/CatalogController.php b/frontend/controllers/CatalogController.php index ea3e100..935fc44 100755 --- a/frontend/controllers/CatalogController.php +++ b/frontend/controllers/CatalogController.php @@ -150,11 +150,11 @@ class CatalogController extends \yii\web\Controller - $cacheKey = ['ActiveProperties','id' => $category, 'params' => $params]; + $cacheKey = ['ActiveProperties','id' => $category]; if(!$priceLimits = Yii::$app->cache->get($cacheKey)){ - $priceLimits = $productModel->priceLimits($category, $params); + $priceLimits = $productModel->priceLimits($category); Yii::$app->cache->set($cacheKey,$priceLimits,3600*24); } diff --git a/frontend/models/ProductFrontendSearch.php b/frontend/models/ProductFrontendSearch.php index 6625015..1fdbccb 100755 --- a/frontend/models/ProductFrontendSearch.php +++ b/frontend/models/ProductFrontendSearch.php @@ -129,12 +129,6 @@ class ProductFrontendSearch extends Product { } $query->joinWith('variant'); - // Price filter fix - unset($params['prices']); - - ProductHelper::_setQueryParams($query, $params, false); - - return [ 'min' => $query->min(ProductVariant::tableName() .'.price'), 'max' => $query->max(ProductVariant::tableName() .'.price'), -- libgit2 0.21.4