當前位置: 首頁>>代碼示例>>PHP>>正文


PHP cachemgr::status方法代碼示例

本文整理匯總了PHP中cachemgr::status方法的典型用法代碼示例。如果您正苦於以下問題:PHP cachemgr::status方法的具體用法?PHP cachemgr::status怎麽用?PHP cachemgr::status使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在cachemgr的用法示例。


在下文中一共展示了cachemgr::status方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: status

 public function status()
 {
     $this->pagedata['status'] = 'current';
     $this->index();
     if (cachemgr::status($msg)) {
         $this->pagedata['status'] = $msg;
         // $this->display('cachemgr/status.html');
     } else {
         //echo '<p class="notice">'.(($msg) ? $msg : app::get('desktop')->_('無法查看狀態')).'</p>';
     }
 }
開發者ID:syjzwjj,項目名稱:quyeba,代碼行數:11,代碼來源:cachemgr.php

示例2: status

 public function status()
 {
     $this->pagedata['status'] = 'current';
     $this->index();
     if (cachemgr::status($msg)) {
         $this->pagedata['status'] = $msg;
         $this->display('cachemgr/status.html');
     } else {
         echo '<p class="notice">' . ($msg ? $msg : '無法查看狀態') . '</p>';
     }
 }
開發者ID:dalinhuang,項目名稱:shopexts,代碼行數:11,代碼來源:cachemgr.php

示例3: getCacheInfo

 public function getCacheInfo()
 {
     if (!defined("CACHE_STORAGE")) {
         return false;
     }
     $aTmp = explode("_", CACHE_STORAGE);
     $msg = false;
     cachemgr::status($msg);
     $aResult = array("name" => $aTmp[count($aTmp) - 1], "status" => $msg);
     return $aResult;
 }
開發者ID:sss201413,項目名稱:ecstore,代碼行數:11,代碼來源:status.php

示例4: index

 public function index()
 {
     $this->pagedata['enable'] = get_class(cachemgr::instance()) == 'base_cache_nocache' ? 'false' : 'true';
     if (cachemgr::status($status)) {
         // foreach ($status as $key => $value) {
         //     $status_obj[] = array(
         //         'label'=>$key,
         //         'data'=>$value
         //     );
         // }
         $this->pagedata['status'] = $status;
     }
     $this->pagedata['cache_name'] = cachemgr::instance()->name;
     $this->pagedata['static_cache'] = array();
     $this->pagedata['syscache'] = array('setting_cache' => syscache::instance('setting')->get_status(), 'service_cache' => syscache::instance('service')->get_status());
     $this->pagedata['kvstore'] = array('name' => vmc::singleton('base_kvstore')->get_controller()->name, 'kvprefix' => base_kvstore::kvprefix());
     foreach (vmc::servicelist('site.router.cache') as $value) {
         if (!method_exists($value, 'get_cache_methods')) {
             continue;
         }
         $methods = $value->get_cache_methods();
         foreach ((array) $methods as $method) {
             if (isset($method['app']) && isset($method['ctl']) && isset($method['act'])) {
                 $expires = app::get('site')->getConf($method['app'] . '_' . $method['ctl'] . '_' . $method['act'] . '.cache_expires');
                 if ($expires !== null) {
                     $method['expires'] = $expires;
                 }
                 $this->pagedata['static_cache'][] = $method;
             }
         }
     }
     foreach (vmc::servicelist('mobile.router.cache') as $value) {
         if (!method_exists($value, 'get_cache_methods')) {
             continue;
         }
         $methods = $value->get_cache_methods();
         foreach ((array) $methods as $method) {
             if (isset($method['app']) && isset($method['ctl']) && isset($method['act'])) {
                 $expires = app::get('mobile')->getConf($method['app'] . '_' . $method['ctl'] . '_' . $method['act'] . '.cache_expires');
                 if ($expires !== null) {
                     $method['expires'] = $expires;
                 }
                 $this->pagedata['mstatic_cache'][] = $method;
             }
         }
     }
     $this->page('cachestage/index.html');
 }
開發者ID:yindonghai,項目名稱:msk.com,代碼行數:48,代碼來源:cachestage.php

示例5: index

 public function index()
 {
     $this->pagedata['enable'] = get_class(cachemgr::instance()) == 'base_cache_nocache' ? 'false' : 'true';
     if (cachemgr::status($msg)) {
         $this->pagedata['status'] = $msg;
     }
     $this->pagedata['static_cache'] = array();
     foreach (kernel::servicelist('site.router.cache') as $value) {
         if (!method_exists($value, 'get_cache_methods')) {
             continue;
         }
         $methods = $value->get_cache_methods();
         foreach ((array) $methods as $method) {
             if (isset($method['app']) && isset($method['ctl']) && isset($method['act'])) {
                 if ($expires = app::get('site')->getConf($method['app'] . '_' . $method['ctl'] . '_' . $method['act'] . '.cache_expires')) {
                     $method['expires'] = $expires;
                 }
                 $this->pagedata['static_cache'][] = $method;
             }
         }
     }
     $this->page('cachemgr/index.html');
 }
開發者ID:sss201413,項目名稱:ecstore,代碼行數:23,代碼來源:cachemgr.php


注:本文中的cachemgr::status方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。