Pārlūkot izejas kodu

fixed: 减小缓存更新间隔.

gwang 4 gadi atpakaļ
vecāks
revīzija
cc06dd41aa
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      Gameserver/Amfphp/process/GuildProc.php

+ 1 - 1
Gameserver/Amfphp/process/GuildProc.php

@@ -355,7 +355,7 @@ class GuildProc {
                 ->fetchAll();
                 ->fetchAll();
         $count = daoInst()->select()->from(self::tabGuild)->where('zoneid')->eq($zoneid)->count();
         $count = daoInst()->select()->from(self::tabGuild)->where('zoneid')->eq($zoneid)->count();
         $memList = ObjectInit();
         $memList = ObjectInit();
-        $memList->ts = now(60);                                                 # 设置为3秒好了,如果体验差,再缩短一下
+        $memList->ts = now(3);                                                 # 设置为3秒好了,如果体验差,再缩短一下
         $memList->table = $dbret;
         $memList->table = $dbret;
         $memList->count = $count;
         $memList->count = $count;
         gMem()->set(MemKey_Guild::guildListCache($page, $zoneid), $memList);    # 更新缓存的公会列表 
         gMem()->set(MemKey_Guild::guildListCache($page, $zoneid), $memList);    # 更新缓存的公会列表