mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 18:51:41 +09:00
added to cache getDefaultMid
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9185 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
5fcb4ce820
commit
77a186161e
2 changed files with 73 additions and 50 deletions
|
|
@ -248,6 +248,19 @@
|
|||
|
||||
}
|
||||
$output = executeQuery('module.updateSite', $args);
|
||||
//clear cache for default mid
|
||||
if($args->site_srl == 0) $vid='';
|
||||
else $vid=$args->domain;
|
||||
$mid = $oModuleModel->getModuleInfoByModuleSrl($args->index_module_srl)->mid;
|
||||
$oCacheHandler = &CacheHandler::getInstance('object');
|
||||
if($oCacheHandler->isSupport()){
|
||||
if($args->site_srl == 0){
|
||||
$cache_key = 'object_default_mid:_';
|
||||
$oCacheHandler->delete($cache_key);
|
||||
}
|
||||
$cache_key = 'object_default_mid:'.$vid.'_'.$mid;
|
||||
$oCacheHandler->delete($cache_key);
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue