Commit ed6cd945cfda685c5de82dc7c5614e180c256c1e
1 parent
de381d69
big commti
Showing
2 changed files
with
5 additions
and
1 deletions
Show diff stats
common/modules/product/helpers/ProductHelper.php
... | ... | @@ -254,7 +254,8 @@ |
254 | 254 | SELECT product_id FROM product_option |
255 | 255 | INNER JOIN tax_option ON tax_option.tax_option_id = product_option.option_id |
256 | 256 | INNER JOIN tax_group ON tax_group.tax_group_id = tax_option.tax_group_id |
257 | - WHERE tax_group.alias LIKE \''. $key .'\' AND tax_option.alias IN (\'' . implode('\',\'', $param) . '\')) OR product_id IN ( | |
257 | + WHERE tax_group.alias LIKE \''. $key .'\' AND tax_option.alias IN (\'' . implode('\',\'', $param) . '\')) | |
258 | + OR product_id IN ( | |
258 | 259 | (SELECT product_id AS products |
259 | 260 | FROM product_variant_option |
260 | 261 | INNER JOIN product_variant ON product_variant_option.product_variant_id = product_variant.product_variant_id | ... | ... |
frontend/views/layouts/main.php
... | ... | @@ -258,6 +258,7 @@ use common\models\Event; |
258 | 258 | <div class="col-md-12"> |
259 | 259 | <div class="row"> |
260 | 260 | <div class="col-md-4"> |
261 | + <?php if($this->beginCache('articles_show')){?> | |
261 | 262 | <span class="posts-title">Статьи</span> |
262 | 263 | <ul class="posts-links style"> |
263 | 264 | <?php foreach(Articles::find()->all() as $article):?> |
... | ... | @@ -273,6 +274,8 @@ use common\models\Event; |
273 | 274 | <?= Html::a('Все статьи', Url::to('/articles/main'))?> |
274 | 275 | <div><span></span></div> |
275 | 276 | </div> |
277 | + | |
278 | + <?php $this->endCache(); } ?> | |
276 | 279 | </div> |
277 | 280 | <div class="col-md-8"> |
278 | 281 | <?php | ... | ... |