当前位置: 首页>>代码示例>>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;未经允许,请勿转载。