修复cron自动清理热度表pre_forum_threadpartake无效的问题。
This commit is contained in:
parent
96364cb1b1
commit
d6dd434adb
|
@ -27,8 +27,8 @@ C::t('forum_postcache')->delete_by_dateline(TIMESTAMP-86400);
|
|||
C::t('forum_newthread')->delete_by_dateline(TIMESTAMP-1296000);
|
||||
C::t('common_seccheck')->truncate();
|
||||
|
||||
if($settingnew['heatthread']['type'] == 2 && $settingnew['heatthread']['period']) {
|
||||
$partakeperoid = 86400 * $settingnew['heatthread']['period'];
|
||||
if($_G['setting']['heatthread']['type'] == 2 && $_G['setting']['heatthread']['period']) {
|
||||
$partakeperoid = 86400 * $_G['setting']['heatthread']['period'];
|
||||
C::t('forum_threadpartake')->delete($_G[timestamp]-$partakeperoid);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue