mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Improve shared caching and invalidation of member points
This commit is contained in:
parent
5b22b0399c
commit
e370ba680f
3 changed files with 31 additions and 22 deletions
|
|
@ -7,11 +7,6 @@
|
|||
*/
|
||||
class pointController extends point
|
||||
{
|
||||
/**
|
||||
* @brief Cache module point config
|
||||
*/
|
||||
protected static $_module_point_config = array();
|
||||
|
||||
/**
|
||||
* @brief Initialization
|
||||
*/
|
||||
|
|
@ -691,6 +686,7 @@ class pointController extends point
|
|||
FileHandler::writeFile($cache_filename, $point);
|
||||
|
||||
getController('member')->_clearMemberCache($member_srl);
|
||||
unset(self::$_member_point_cache[$member_srl]);
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
|
@ -715,11 +711,11 @@ class pointController extends point
|
|||
|
||||
if ($module_srl)
|
||||
{
|
||||
if (!isset(self::$_module_point_config[$module_srl]))
|
||||
if (!isset(self::$_module_config_cache[$module_srl]))
|
||||
{
|
||||
self::$_module_point_config[$module_srl] = $oModuleModel->getModulePartConfig('point', $module_srl);
|
||||
self::$_module_config_cache[$module_srl] = $oModuleModel->getModulePartConfig('point', $module_srl);
|
||||
}
|
||||
$module_config = self::$_module_point_config[$module_srl];
|
||||
$module_config = self::$_module_config_cache[$module_srl];
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue