修复 addviews 从 0 -> 1 过程中没有更新缓存的问题
This commit is contained in:
parent
5f90403eed
commit
10c9f8d504
|
@ -1034,7 +1034,7 @@ function viewthread_updateviews($tableid) {
|
|||
|
||||
if(!$_G['setting']['preventrefresh'] || $_G['cookie']['viewid'] != 'tid_'.$_G['tid']) {
|
||||
if(!$tableid && $_G['setting']['optimizeviews']) {
|
||||
if($_G['forum_thread']['addviews']) {
|
||||
if(isset($_G['forum_thread']['addviews'])) {
|
||||
if($_G['forum_thread']['addviews'] < 100) {
|
||||
C::t('forum_threadaddviews')->update_by_tid($_G['tid']);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue