]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
Правки по выводу списка товаров в создании документов списания
authorAleksey Filippov <Aleksey.Filippov@erp-flowers.ru>
Tue, 4 Jun 2024 09:08:14 +0000 (12:08 +0300)
committerAleksey Filippov <Aleksey.Filippov@erp-flowers.ru>
Tue, 4 Jun 2024 09:08:14 +0000 (12:08 +0300)
erp24/records/Products1c.php

index 8937dfc9fed2bed986ff0459ae58516a365f5eea..f356eae027d446b8f7f306bce9d5900cfa5b11e3 100644 (file)
@@ -117,9 +117,9 @@ class Products1c extends \yii\db\ActiveRecord
     public static function getProducts1cByTypeWithPrice() : array
     {
         $cache = \Yii::$app->getCache();
-
+        $keyPrefix = date('Y-m-d');
         return $cache->getOrSet(
-            'Products_1c_By_Type_With_Price',
+            'Products_1c_By_Type_With_Price_' . $keyPrefix,
             function() {
                 $tip = 'products';
 
@@ -134,7 +134,7 @@ class Products1c extends \yii\db\ActiveRecord
 
                 return ArrayHelper::map($listAllProductsPreparedDict, 'id', 'name');
             },
-            3600
+            600
         );
     }
     /**