mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-20 03:39:56 +09:00
remove Cache support for DefaultMid
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8934 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
46ce687aa6
commit
5a1d41dd00
2 changed files with 0 additions and 20 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue