wesmiler 5 年之前
父節點
當前提交
8fb8220443
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/index/controller/IndexController.php

+ 1 - 1
app/index/controller/IndexController.php

@@ -16,7 +16,7 @@ class IndexController extends HomeBaseController
 {
 {
     public function index()
     public function index()
     {
     {
-        $cacheKey = 'cache:index_pages:index';
+        $cacheKey = 'cache:index_pages:index_'.intval(cmf_is_mobile());
         $pageHtml = RedisService::get($cacheKey);
         $pageHtml = RedisService::get($cacheKey);
         if($pageHtml){
         if($pageHtml){
             return $pageHtml;
             return $pageHtml;