当前位置: 首页>>代码示例>>PHP>>正文


PHP cachemgr::clean方法代码示例

本文整理汇总了PHP中cachemgr::clean方法的典型用法代码示例。如果您正苦于以下问题:PHP cachemgr::clean方法的具体用法?PHP cachemgr::clean怎么用?PHP cachemgr::clean使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在cachemgr的用法示例。


在下文中一共展示了cachemgr::clean方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: result

 function result()
 {
     $oSearch =& $this->app->model('search');
     $emu_static = $this->app->getConf('system.seo.emuStatic');
     $cat_id = $_POST['cat_id'];
     unset($_POST['cat_id']);
     foreach ($_POST as $k => $v) {
         if ($k == "name" && $_POST[$k][0]) {
             $_POST[$k][0] = str_replace('_', '%xia%', $_POST[$k][0]);
         }
         if ($k == "price" && $_POST[$k][1]) {
             $_POST[$k][0] = floatval($_POST[$k][0]);
             $_POST[$k][1] = floatval($_POST[$k][1]);
         }
     }
     if (isset($_POST['filter']) && ($filter = $oSearch->decode($_POST['filter'], $path))) {
         $filter = array_merge($filter, $_POST);
     } else {
         $filter = $_POST;
     }
     unset($_POST['filter']);
     $filter = $oSearch->encode($filter);
     if (empty($cat_id) && empty($filter)) {
         $args = null;
     } else {
         $args = array($cat_id, $filter);
     }
     cachemgr::clean($msg);
     $this->sredirect(array('app' => 'b2c', 'ctl' => 'site_gallery', 'act' => 'index', 'args' => $args));
 }
开发者ID:dalinhuang,项目名称:shopexts,代码行数:30,代码来源:search.php

示例2: clean

 public function clean()
 {
     $this->pagedata['clean'] = 'current';
     $this->index();
     if (cachemgr::clean($msg)) {
         echo '<p class="notice">' . ($msg ? $msg : '清空缓存完成') . '</p>';
     } else {
         echo '<p class="notice">' . ($msg ? $msg : '清空缓存失败') . '</p>';
     }
 }
开发者ID:dalinhuang,项目名称:shopexts,代码行数:10,代码来源:cachemgr.php

示例3: post_update

 function post_update($params)
 {
     $dbver = $params['dbver'];
     if (version_compare($dbver, '1.0.6', '<')) {
         //更新widgets css最后更新时间
         site_widgets::set_last_modify();
         //重新创建module sitemap
         kernel::single('site_module_base')->create_site_config();
         //缓存全部更新, 改造了缓存机制
         cachemgr::clean($msg);
     }
 }
开发者ID:sss201413,项目名称:ecstore,代码行数:12,代码来源:task.php

示例4: command_cacheclean

 public function command_cacheclean()
 {
     if (app::get('base')->status() == 'uninstalled') {
         logger::info('系统未安装!请先运行install');
         return;
     }
     logger::info('Cache Clear...');
     cachemgr::init(true);
     if (cachemgr::clean($msg)) {
         logger::info($msg ? $msg : '...Clear Success');
     } else {
         logger::info($msg ? $msg : '...Clear Failure');
     }
     cachemgr::init(false);
 }
开发者ID:yindonghai,项目名称:msk.com,代码行数:15,代码来源:buildin.php

示例5: touch_theme_tmpl

 public function touch_theme_tmpl($theme)
 {
     $rows = app::get('site')->model('themes_tmpl')->select()->columns('tmpl_path')->where('theme = ?', $theme)->instance()->fetch_all();
     if ($rows) {
         array_push($rows, array('tmpl_path' => 'block/header.html'), array('tmpl_path' => 'block/footer.html'));
         foreach ($rows as $row) {
             $this->touch_tmpl_file($theme . '/' . $row['tmpl_path']);
         }
         kernel::single('site_theme_base')->set_theme_cache_version($theme);
     }
     $cache_keys = kernel::database()->select('SELECT `prefix`, `key` FROM sdb_base_kvstore WHERE `prefix` IN ("cache/template", "cache/theme")');
     foreach ($cache_keys as $value) {
         base_kvstore::instance($value['prefix'])->get_controller()->delete($value['key']);
     }
     kernel::database()->exec('DELETE FROM sdb_base_kvstore WHERE `prefix` IN ("cache/template", "cache/theme")');
     cachemgr::init(true);
     cachemgr::clean($msg);
     cachemgr::init(false);
     return true;
 }
开发者ID:noikiy,项目名称:Ecstore-to-odoo,代码行数:20,代码来源:fssave.php

示例6: cachemgr_clean

 public function cachemgr_clean()
 {
     $this->begin('index.php?app=desktop&ctl=cachestage');
     cachemgr::optimize($msg);
     $this->end(cachemgr::clean($msg), $msg);
 }
开发者ID:noikiy,项目名称:snk,代码行数:6,代码来源:cachestage.php

示例7: clean

 public function clean()
 {
     $this->begin('');
     $this->end(cachemgr::clean($msg), $msg);
 }
开发者ID:syjzwjj,项目名称:quyeba,代码行数:5,代码来源:cachemgr.php

示例8: touch_theme_tmpl

 public function touch_theme_tmpl($theme)
 {
     vmc::singleton('site_theme_base')->set_theme_cache_version($theme);
     $cache_keys = vmc::database()->select('SELECT `prefix`, `key` FROM vmc_base_kvstore WHERE `prefix` IN ("cache/template", "cache/theme")');
     foreach ($cache_keys as $value) {
         base_kvstore::instance($value['prefix'])->get_controller()->delete($value['key']);
     }
     vmc::database()->exec('DELETE FROM vmc_base_kvstore WHERE `prefix` IN ("cache/template", "cache/theme")', true);
     cachemgr::init(true);
     cachemgr::clean($msg);
     cachemgr::init(false);
     return true;
 }
开发者ID:noikiy,项目名称:snk,代码行数:13,代码来源:fssave.php

示例9: command_cacheclean

 function command_cacheclean()
 {
     kernel::log('Cache Clear...');
     cachemgr::init(true);
     if (cachemgr::clean($msg)) {
         kernel::log($msg ? $msg : '...Clear Success');
     } else {
         kernel::log($msg ? $msg : '...Clear Failure');
     }
     cachemgr::init(false);
 }
开发者ID:syjzwjj,项目名称:quyeba,代码行数:11,代码来源:buildin.php

示例10: post_update

 function post_update($dbinfo)
 {
     $dbver = $dbinfo['dbver'];
     if (empty($dbver) || $dbver == '0.1') {
         app::get('base')->model('cache_expires')->delete(array());
         $rows = app::get('base')->model('apps')->getList('app_id', array('installed' => 1));
         $content_detectors['list'] = array('base_application_cache_expires');
         $service = new service($content_detectors);
         foreach ($rows as $row) {
             foreach ($service as $detector) {
                 foreach ($detector->detect(app::get($row['app_id'])) as $name => $item) {
                     $item->install();
                 }
             }
         }
         cachemgr::clean($msg);
         //清空缓存
         kernel::log('cache expiers update');
     }
     //变更cache_expires结构及数据,0.1版本前存在的问题包括0.1
     if ($dbver && $dbver == '0.12') {
         // 升级版本,清理原来rpcpoll表里面的大量冗余数据。
         app::get('base')->model('rpcpoll')->delete(array('type' => 'response'));
     } elseif ($dbver && $dbver == '0.13') {
         // 0.13-0.14版本历史性的解决下openapi的bug-修改数据互联callback_url的地址.
         // 将原来的api->openapi.
         $params = array('app' => 'app.updateRelCallbackUrl', 'cert_id' => base_certificate::get('certificate_id'));
         $token = base_certificate::get('token');
         $str = '';
         ksort($params);
         foreach ($params as $key => $value) {
             $str .= $value;
         }
         $params['certi_ac'] = md5($str . $token);
         $http = kernel::single('base_httpclient');
         $http->set_timeout(6);
         $result = $http->post(MATRIX_RELATION_URL . '/api.php', $params);
     }
     $rpc_global_server = array('node_id' => MATRIX_GLOBAL, 'node_url' => MATRIX_URL, 'node_name' => 'Global Matrix', 'node_api' => '', 'link_status' => 'active');
     app::get('base')->model('network')->replace($rpc_global_server, array('node_id' => MATRIX_GLOBAL), true);
     $rpc_realtime_server = array('node_id' => MATRIX_REALTIME, 'node_url' => MATRIX_REALTIME_URL, 'node_name' => 'Realtime Matrixi', 'node_api' => '', 'link_status' => 'active');
     app::get('base')->model('network')->replace($rpc_realtime_server, array('node_id' => MATRIX_REALTIME), true);
     $rpc_service_server = array('node_id' => MATRIX_SERVICE, 'node_url' => MATRIX_SERVICE_URL, 'node_name' => 'Service Matrix', 'node_api' => '', 'link_status' => 'active');
     app::get('base')->model('network')->replace($rpc_service_server, array('node_id' => MATRIX_SERVICE), true);
 }
开发者ID:syjzwjj,项目名称:quyeba,代码行数:45,代码来源:task.php

示例11: post_update

 public function post_update($params)
 {
     vmc::singleton('site_module_base')->create_site_config();
     //缓存全部更新, 改造了缓存机制
     cachemgr::clean($msg);
 }
开发者ID:yindonghai,项目名称:msk.com,代码行数:6,代码来源:task.php


注:本文中的cachemgr::clean方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。