Browse Source

:fire: 术语缓存

visuddhinanda 2 năm trước cách đây
mục cha
commit
37422bd93f
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/Http/Api/TemplateRender.php

+ 1 - 1
app/Http/Api/TemplateRender.php

@@ -74,7 +74,7 @@ class TemplateRender{
         $channelId = $this->channel_id[0];
         $channelId = $this->channel_id[0];
         $channelInfo = $this->channelInfo[0];
         $channelInfo = $this->channelInfo[0];
         $props = Cache::remember("/term/{$channelId}/{$word}",
         $props = Cache::remember("/term/{$channelId}/{$word}",
-                env('CACHE_EXPIRE',3600*24),
+                env('CACHE_EXPIRE',1),
               function() use($word,$channelId,$channelInfo){
               function() use($word,$channelId,$channelInfo){
 
 
                 $lang = Channel::where('uid',$channelId)->value('lang');
                 $lang = Channel::where('uid',$channelId)->value('lang');