From eb35311f4a640fabe5fca459a699fb6f5a39cfca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=81=E5=91=A8=E9=83=A8=E8=90=BD?= Date: Fri, 16 Apr 2021 11:28:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E5=AF=B9=E4=BA=8E?= =?UTF-8?q?=E8=9C=98=E8=9B=9B=E7=B1=BB=E5=9E=8B=E7=89=B9=E6=AE=8A=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E4=B8=8D=E7=BC=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- upload/source/function/function_core.php | 2 +- upload/source/module/forum/forum_index.php | 4 ++-- upload/source/module/forum/forum_viewthread.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/upload/source/function/function_core.php b/upload/source/function/function_core.php index 9ea09b16f..523481b4b 100644 --- a/upload/source/function/function_core.php +++ b/upload/source/function/function_core.php @@ -1060,7 +1060,7 @@ function output() { } $_G['setting']['ftp'] = array(); - if(defined('CACHE_FILE') && CACHE_FILE && !defined('CACHE_FORBIDDEN') && !defined('IN_MOBILE') && !checkmobile()) { + if(defined('CACHE_FILE') && CACHE_FILE && !defined('CACHE_FORBIDDEN') && !defined('IN_MOBILE') && !defined('IS_ROBOT') && !checkmobile()) { if(diskfreespace(DISCUZ_ROOT.'./'.$_G['setting']['cachethreaddir']) > 1000000) { if($fp = @fopen(CACHE_FILE, 'w')) { flock($fp, LOCK_EX); diff --git a/upload/source/module/forum/forum_index.php b/upload/source/module/forum/forum_index.php index 0aad04a7c..b508730b8 100644 --- a/upload/source/module/forum/forum_index.php +++ b/upload/source/module/forum/forum_index.php @@ -16,7 +16,7 @@ require_once libfile('function/forumlist'); $gid = intval(getgpc('gid')); $showoldetails = get_index_online_details(); -if(!$_G['uid'] && !$gid && $_G['setting']['cacheindexlife'] && !defined('IN_ARCHIVER') && !defined('IN_MOBILE')) { +if(!$_G['uid'] && !$gid && $_G['setting']['cacheindexlife'] && !defined('IN_ARCHIVER') && !defined('IN_MOBILE') && !defined('IS_ROBOT')) { get_index_page_guest_cache(); } @@ -128,7 +128,7 @@ if(!$gid && $_G['setting']['collectionstatus'] && ($_G['setting']['collectionrec } -if(empty($gid) && empty($_G['member']['accessmasks']) && empty($showoldetails)) { +if(empty($gid) && empty($_G['member']['accessmasks']) && empty($showoldetails) && !defined('IS_ROBOT')) { extract(get_index_memory_by_groupid($_G['member']['groupid'])); if(defined('FORUM_INDEX_PAGE_MEMORY') && FORUM_INDEX_PAGE_MEMORY) { categorycollapse(); diff --git a/upload/source/module/forum/forum_viewthread.php b/upload/source/module/forum/forum_viewthread.php index d160ab6dd..331954e9a 100644 --- a/upload/source/module/forum/forum_viewthread.php +++ b/upload/source/module/forum/forum_viewthread.php @@ -34,7 +34,7 @@ if($page === 1 && !empty($_G['setting']['antitheft']['allow']) && empty($_G['set helper_antitheft::check($_G['forum_thread']['tid'], 'tid'); } -if($_G['setting']['cachethreadlife'] && $_G['forum']['threadcaches'] && !$_G['uid'] && $page == 1 && !$_G['forum']['special'] && empty($_GET['do']) && empty($_GET['from']) && empty($_GET['threadindex']) && !defined('IN_ARCHIVER') && !defined('IN_MOBILE')) { +if($_G['setting']['cachethreadlife'] && $_G['forum']['threadcaches'] && !$_G['uid'] && $page == 1 && !$_G['forum']['special'] && empty($_GET['do']) && empty($_GET['from']) && empty($_GET['threadindex']) && !defined('IN_ARCHIVER') && !defined('IN_MOBILE') && !defined('IS_ROBOT')) { viewthread_loadcache(); } -- Gitee