mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
#385 ‘counter:insertedTodayStatus’ cache가 제대로 작동하지 않는 문제 수정
This commit is contained in:
parent
fff3e03ea7
commit
3cdeeabdc6
1 changed files with 6 additions and 6 deletions
|
|
@ -85,13 +85,13 @@ class counterModel extends counter
|
|||
}
|
||||
|
||||
$insertedTodayStatus = !!$output->data->count;
|
||||
}
|
||||
|
||||
if($insertedTodayStatus && $oCacheHandler->isSupport())
|
||||
{
|
||||
$oCacheHandler->put($cache_key, TRUE);
|
||||
$_old_date = date('Ymd', strtotime('-1 day'));
|
||||
$oCacheHandler->delete('counter:insertedTodayStatus:' . $site_srl . '_' . $_old_date);
|
||||
if($insertedTodayStatus && $oCacheHandler->isSupport())
|
||||
{
|
||||
$oCacheHandler->put($cache_key, TRUE);
|
||||
$_old_date = date('Ymd', strtotime('-1 day'));
|
||||
$oCacheHandler->delete('counter:insertedTodayStatus:' . $site_srl . '_' . $_old_date);
|
||||
}
|
||||
}
|
||||
|
||||
return $insertedTodayStatus;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue