<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                ## niushop緩存技術 niushop緩存采用thinkphp5的緩存技術實現,緩存包括數據緩存與請求緩存: 1、數據緩存:也就是thinkphp的cache緩存: cache("設置緩存變量", "緩存數據", "緩存時效"); 例如首頁板塊的緩存: cache("block_data_".$block_id, $info); //表示設置緩存 cache("block_data_".$block_id, null); //表示清除緩存 2、請求緩存:也就是thinkphp的請求緩存(具體參照thinkphp5手冊) 請求緩存僅對GET請求有效,有兩種方式可以設置請求緩存。 路由參數 可以在路由規則里面定義 cache 參數開啟當前路由規則的請求緩存,例如: Route::get('new/:id','News/read',['cache'=>3600]); 系統請求緩存放在common.php公共函數調用: /** * 配置pc端緩存 */ function getShopCache(){ if(!Request::instance()->isAjax()) { $model = Request::instance()->module(); $model = strtolower($model); $controller = Request::instance()->controller(); $controller = strtolower($controller); $action = Request::instance()->action(); $action = strtolower($action); if($model =='shop' && $controller =='index' && $action="index" ) { if(Request::instance()->isMobile()) { Redirect::create("wap/index/index"); }else{ Request::instance()->cache('/web/document',1800); } } if($model == 'shop' && $controller !='goods' && $controller !='member' ) { Request::instance()->cache('/web/document',1800); } if($model == 'shop' && $controller =='goods' && $action =='brandlist' ) { Request::instance()->cache('/web/document',1800); } } } /** * 獲取手機端緩存 */ function getWapCache(){ if(!Request::instance()->isAjax()) { $model = Request::instance()->module(); $model = strtolower($model); $controller = Request::instance()->controller(); $controller = strtolower($controller); $action = Request::instance()->action(); $action = strtolower($action); //店鋪頁面緩存8分鐘 if($model == 'wap' && $controller =='shop' && $action =='index' ) { Request::instance()->cache('/web/document',480); } if($model == 'wap' && $controller !='goods' && $controller !='member' ) { Request::instance()->cache('/web/document',1800); } if($model == 'wap' && $controller =='goods' && $action !='brandlist' ) { Request::instance()->cache('/web/document',1800); } if($model == 'wap' && $controller =='goods' && $action !='goodsGroupList' ) { Request::instance()->cache('/web/document',1800); } } }
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看