mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
#242 object cache 정리
This commit is contained in:
parent
d4d43c1382
commit
37c5e114ec
20 changed files with 513 additions and 253 deletions
|
|
@ -35,7 +35,7 @@ class counterModel extends counter
|
|||
$oCacheHandler = CacheHandler::getInstance('object');
|
||||
if($oCacheHandler->isSupport())
|
||||
{
|
||||
$object_key = 'object:' . $site_srl . '_' . str_replace('.', '-', $args->ipaddress);
|
||||
$object_key = 'counter:' . $site_srl . '_' . str_replace(array('.', ':'), '-', $args->ipaddress);
|
||||
$cache_key = $oCacheHandler->getGroupKey('counterIpLogged_' . $args->regdate, $object_key);
|
||||
if($oCacheHandler->isValid($cache_key))
|
||||
{
|
||||
|
|
@ -68,7 +68,7 @@ class counterModel extends counter
|
|||
$oCacheHandler = CacheHandler::getInstance('object', NULL, TRUE);
|
||||
if($oCacheHandler->isSupport())
|
||||
{
|
||||
$cache_key = 'object:insertedTodayStatus:' . $site_srl . '_' . $args->regdate;
|
||||
$cache_key = 'counter:insertedTodayStatus:' . $site_srl . '_' . $args->regdate;
|
||||
if($oCacheHandler->isValid($cache_key))
|
||||
{
|
||||
return $oCacheHandler->get($cache_key);
|
||||
|
|
@ -90,7 +90,7 @@ class counterModel extends counter
|
|||
{
|
||||
$oCacheHandler->put($cache_key, TRUE);
|
||||
$_old_date = date('Ymd', strtotime('-1 day'));
|
||||
$oCacheHandler->delete('object:insertedTodayStatus:' . $site_srl . '_' . $_old_date);
|
||||
$oCacheHandler->delete('counter:insertedTodayStatus:' . $site_srl . '_' . $_old_date);
|
||||
}
|
||||
|
||||
return $result;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue