|
@@ -11,12 +11,11 @@ namespace molilian.core
|
|
|
public partial class TkLogCore
|
|
public partial class TkLogCore
|
|
|
{
|
|
{
|
|
|
|
|
|
|
|
- public static bool save_dailys_log = false;
|
|
|
|
|
-
|
|
|
|
|
- static TkLogCore()
|
|
|
|
|
- {
|
|
|
|
|
- int flag = RedisHelper.Get<int>("turn:save_dailys_log");
|
|
|
|
|
- if (flag == 1) save_dailys_log = true;
|
|
|
|
|
|
|
+ public static bool save_dailys_log = false;
|
|
|
|
|
+
|
|
|
|
|
+ internal static void InitializeSaveDailyLogFlag()
|
|
|
|
|
+ {
|
|
|
|
|
+ save_dailys_log = RedisHelper.Get<int>("turn:save_dailys_log") == 1;
|
|
|
}
|
|
}
|
|
|
private static readonly SemaphoreSlim semaphore = new SemaphoreSlim(10, 10);
|
|
private static readonly SemaphoreSlim semaphore = new SemaphoreSlim(10, 10);
|
|
|
private const int StatsHourlyExpireSeconds = 7 * 86400;
|
|
private const int StatsHourlyExpireSeconds = 7 * 86400;
|