mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 10:41:40 +09:00
use cache bug fix
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12488 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
c82e654111
commit
cd5762e1af
1 changed files with 7 additions and 10 deletions
|
|
@ -279,21 +279,18 @@ class moduleModel extends module
|
||||||
$cache_key = 'object_module_info:'.$module_srl;
|
$cache_key = 'object_module_info:'.$module_srl;
|
||||||
$coutput = $oCacheHandler->get($cache_key);
|
$coutput = $oCacheHandler->get($cache_key);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if(!$coutput)
|
if(!$coutput)
|
||||||
{
|
|
||||||
if($oCacheHandler->isSupport())
|
|
||||||
{
|
{
|
||||||
$cache_key = 'object:'.$mid.'_'.$site_srl;
|
$cache_key = 'object:'.$mid.'_'.$site_srl;
|
||||||
$oCacheHandler->put($cache_key,$output->data->module_srl);
|
$oCacheHandler->put($cache_key, $output->data->module_srl);
|
||||||
$cache_key = 'object_module_info:'.$output->data->module_srl;
|
$cache_key = 'object_module_info:'.$output->data->module_srl;
|
||||||
$oCacheHandler->put($cache_key,$output);
|
$oCacheHandler->put($cache_key, $moduleInfo);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$moduleInfo = $coutput;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$moduleInfo = $coutput->data;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$moduleInfo = $this->addModuleExtraVars($moduleInfo);
|
$moduleInfo = $this->addModuleExtraVars($moduleInfo);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue