diff --git a/upload/source/function/function_core.php b/upload/source/function/function_core.php index 9ea09b16f8a37975e428bbef0dd9e316fd0190fa..523481b4b910f4ed59fe2a9c9b2c884884a2f3bd 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 0aad04a7cc45bbe934d4f542c36f29a9a72a6a88..b508730b814a065e94459b9cd2a9e78a99f14b8d 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 d160ab6dd35d143fb879bbc4b9f86c5b6fffb1ea..331954e9a05ab80fc9d255ea572ca06f26becb3d 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(); }