From 9e2a4ba4a0e09daef5017eb90019ba837bdc16e8 Mon Sep 17 00:00:00 2001 From: Aleksey Filippov Date: Tue, 4 Jun 2024 12:08:14 +0300 Subject: [PATCH] =?utf8?q?=D0=9F=D1=80=D0=B0=D0=B2=D0=BA=D0=B8=20=D0=BF?= =?utf8?q?=D0=BE=20=D0=B2=D1=8B=D0=B2=D0=BE=D0=B4=D1=83=20=D1=81=D0=BF?= =?utf8?q?=D0=B8=D1=81=D0=BA=D0=B0=20=D1=82=D0=BE=D0=B2=D0=B0=D1=80=D0=BE?= =?utf8?q?=D0=B2=20=D0=B2=20=D1=81=D0=BE=D0=B7=D0=B4=D0=B0=D0=BD=D0=B8?= =?utf8?q?=D0=B8=20=D0=B4=D0=BE=D0=BA=D1=83=D0=BC=D0=B5=D0=BD=D1=82=D0=BE?= =?utf8?q?=D0=B2=20=D1=81=D0=BF=D0=B8=D1=81=D0=B0=D0=BD=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/records/Products1c.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/erp24/records/Products1c.php b/erp24/records/Products1c.php index 8937dfc9..f356eae0 100644 --- a/erp24/records/Products1c.php +++ b/erp24/records/Products1c.php @@ -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 ); } /** -- 2.39.5