Преглед на файлове

Merge branch 'yang-fix-panel' into yang

ANG YU преди 5 години
родител
ревизия
0189c98e45
променени са 2 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 1 1
      app/Services/NewOrderCountingRecordService.php
  2. 1 0
      config/cache.php

+ 1 - 1
app/Services/NewOrderCountingRecordService.php

@@ -312,7 +312,7 @@ class NewOrderCountingRecordService
 
 
             $ttl = config('cache.expirations.forever');
             $ttl = config('cache.expirations.forever');
             if (!$this->isNotCurrentDate($orders[0]['date_target'], $unit)) {
             if (!$this->isNotCurrentDate($orders[0]['date_target'], $unit)) {
-                $ttl = config('cache.expirations.oftenChange');
+                $ttl = config('cache.expirations.orderCountingRecord');
             }
             }
             Cache::put($key, collect($orders), $ttl);
             Cache::put($key, collect($orders), $ttl);
         }
         }

+ 1 - 0
config/cache.php

@@ -13,6 +13,7 @@ return [
         'forever' =>null,       //永久
         'forever' =>null,       //永久
 
 
         'owners'=>20,           //模型Owner
         'owners'=>20,           //模型Owner
+        'orderCountingRecord'=>1800,           //模型Owner
     ],
     ],
     /*
     /*
     |--------------------------------------------------------------------------
     |--------------------------------------------------------------------------