From 5a1d41dd0010f831a0fd3abeea71e936d4499835 Mon Sep 17 00:00:00 2001 From: lickawtl Date: Mon, 29 Aug 2011 14:10:33 +0000 Subject: [PATCH] remove Cache support for DefaultMid git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8934 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/module/module.controller.php | 12 ------------ modules/module/module.model.php | 8 -------- 2 files changed, 20 deletions(-) diff --git a/modules/module/module.controller.php b/modules/module/module.controller.php index 1e8de2ddd..8066ec793 100644 --- a/modules/module/module.controller.php +++ b/modules/module/module.controller.php @@ -196,12 +196,6 @@ } $output = executeQuery('module.updateSite', $args); - //remove from cache - $oCacheHandler = &CacheHandler::getInstance('object'); - if($oCacheHandler->isSupport()){ - $cache_key = 'object:'.'default_mid'; - $oCacheHandler->delete($cache_key); - } return $output; } @@ -407,12 +401,6 @@ **/ function clearDefaultModule() { $output = executeQuery('module.clearDefaultModule'); - //remove from cache - $oCacheHandler = &CacheHandler::getInstance('object'); - if($oCacheHandler->isSupport()){ - $cache_key = 'object:'.'default_mid'; - $oCacheHandler->delete($cache_key); - } if(!$output->toBool()) return $output; return $output; diff --git a/modules/module/module.model.php b/modules/module/module.model.php index 3e1583e97..b7720e6d1 100644 --- a/modules/module/module.model.php +++ b/modules/module/module.model.php @@ -68,12 +68,6 @@ * @brief Get the defaul mid according to the domain **/ function getDefaultMid() { - $oCacheHandler = &CacheHandler::getInstance('object'); - if($oCacheHandler->isSupport()){ - $cache_key = 'object:'.'default_mid'; - $output = $oCacheHandler->get($cache_key); - } - if(!$output){ $default_url = preg_replace('/\/$/','',Context::getDefaultUrl()); $request_url = preg_replace('/\/$/','',Context::getRequestUri()); $vid = Context::get('vid'); @@ -128,8 +122,6 @@ $output = executeQuery('module.getSiteInfo', $args); } } - if($oCacheHandler->isSupport()) $oCacheHandler->put($cache_key,$output); - } $module_info = $output->data; if(!$module_info->module_srl) return $module_info; if(is_array($module_info) && $module_info->data[0]) $module_info = $module_info[0];