diff --git a/common/modules/product/models/Product.php b/common/modules/product/models/Product.php index 9cb5b89..a97dd22 100755 --- a/common/modules/product/models/Product.php +++ b/common/modules/product/models/Product.php @@ -289,7 +289,7 @@ class Product extends \yii\db\ActiveRecord } public function getActiveProperties($category_id) { - $cacheKey = ['ActiveProperties','id' => $category_id, 'options' =>$this->options]; + $cacheKey = ['ActiveProperties','id' => $category_id, 'options' =>$this->options, 'product_id' => $this->product_id ]; if(!$groups = Yii::$app->cache->get($cacheKey)){ -- libgit2 0.21.4