/ 设置 10 秒超时 // 每日统计清 0 runtime_set('todaycomments', 0); runtime_set('todayarticles', 0); runtime_set('todayusers', 0); if ($forumlist) { $fidarr = array(); foreach ($forumlist as $fid => $forum) { $fidarr[] = $forum['fid']; } forum_update($fidarr, array('todayposts' => 0, 'todaythreads' => 0)); } // 清理临时附件 attach_gc(); // 当天24点 $today = strtotime(date('Ymd')) + 86400; runtime_set('cron_2_last_date', $today, TRUE); // 往前推8个小时,尽量保证在前一天 升级过来和采集的数据会很卡 // table_day_cron($time - 8 * 3600); cache_delete('cron_lock_2'); } } } ?>daemon

新安装的docker daemon.json位置_使用Docker打包代码配置记录

由于需要将环境和代码打包到Docker中放到其他机器运行,又被无情地消耗了一个周末。听闻大佬说,能将别人不懂的东西,使用通俗易懂的语言解释清楚让别人理解,也是一种能力。因此,特作文以记之。 基本概念 Docker 包括三个基本概念: 镜像(

2024-11-15650