mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +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;
|
$insertedTodayStatus = !!$output->data->count;
|
||||||
}
|
|
||||||
|
|
||||||
if($insertedTodayStatus && $oCacheHandler->isSupport())
|
if($insertedTodayStatus && $oCacheHandler->isSupport())
|
||||||
{
|
{
|
||||||
$oCacheHandler->put($cache_key, TRUE);
|
$oCacheHandler->put($cache_key, TRUE);
|
||||||
$_old_date = date('Ymd', strtotime('-1 day'));
|
$_old_date = date('Ymd', strtotime('-1 day'));
|
||||||
$oCacheHandler->delete('counter:insertedTodayStatus:' . $site_srl . '_' . $_old_date);
|
$oCacheHandler->delete('counter:insertedTodayStatus:' . $site_srl . '_' . $_old_date);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $insertedTodayStatus;
|
return $insertedTodayStatus;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue