mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-18 18:02:15 +09:00
cache improvements bug fixed
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9143 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
054a2e7e81
commit
53ccb1b84f
1 changed files with 8 additions and 4 deletions
|
|
@ -934,9 +934,11 @@
|
|||
$args->site_srl = $site_srl;
|
||||
$output = executeQuery('module.getModuleConfig', $args);
|
||||
$config = unserialize($output->data->config);
|
||||
if(!$config) $config = 'empty_module_config';
|
||||
//insert in cache
|
||||
if($oCacheHandler->isSupport()) $oCacheHandler->put($cache_key,$config);
|
||||
if($oCacheHandler->isSupport()) {
|
||||
if(!$config) $config = 'empty_module_config';
|
||||
$oCacheHandler->put($cache_key,$config);
|
||||
}
|
||||
$GLOBALS['__ModuleConfig__'][$site_srl][$module] = $config;
|
||||
}
|
||||
return $GLOBALS['__ModuleConfig__'][$site_srl][$module];
|
||||
|
|
@ -963,9 +965,11 @@
|
|||
$args->module_srl = $module_srl;
|
||||
$output = executeQuery('module.getModulePartConfig', $args);
|
||||
$config = unserialize($output->data->config);
|
||||
if(!$config) $config = 'empty_module_config';
|
||||
//insert in cache
|
||||
if($oCacheHandler->isSupport()) $oCacheHandler->put($cache_key,$config);
|
||||
if($oCacheHandler->isSupport()) {
|
||||
if(!$config) $config = 'empty_module_config';
|
||||
$oCacheHandler->put($cache_key,$config);
|
||||
}
|
||||
$GLOBALS['__ModulePartConfig__'][$module][$module_srl] = $config;
|
||||
}
|
||||
return $GLOBALS['__ModulePartConfig__'][$module][$module_srl];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue