Selaa lähdekoodia

Merge branch 'yang-fix-panel' into yang

ANG YU 5 vuotta sitten
vanhempi
commit
0189c98e45
2 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  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');
             if (!$this->isNotCurrentDate($orders[0]['date_target'], $unit)) {
-                $ttl = config('cache.expirations.oftenChange');
+                $ttl = config('cache.expirations.orderCountingRecord');
             }
             Cache::put($key, collect($orders), $ttl);
         }

+ 1 - 0
config/cache.php

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