mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-29 23:32:54 +09:00
Clean up counter module
- 카운터 모듈을 정리하여 불필요한 쿼리 및 트랜잭션 제거 - 매일 첫 방문시 쿼리 오류 발생하는 문제 해결 - 더이상 사용하지 않는 $site_srl 기준의 테이블은 삭제
This commit is contained in:
parent
350d0cd20c
commit
8d2b105847
21 changed files with 83 additions and 379 deletions
|
|
@ -41,22 +41,19 @@ class counterAdminView extends counter
|
|||
$oCounterModel = getModel('counter');
|
||||
|
||||
// get a total count and daily count
|
||||
$site_module_info = Context::get('site_module_info');
|
||||
$status = $oCounterModel->getStatus(array(0, $selected_date), $site_module_info->site_srl);
|
||||
|
||||
$status = $oCounterModel->getStatus(array(0, $selected_date));
|
||||
Context::set('total_counter', $status[0]);
|
||||
Context::set('selected_day_counter', $status[$selected_date]);
|
||||
|
||||
// get data by time, day, month, and year
|
||||
$type = Context::get('type');
|
||||
|
||||
if(!$type)
|
||||
{
|
||||
$type = 'day';
|
||||
Context::set('type', $type);
|
||||
}
|
||||
|
||||
$detail_status = $oCounterModel->getHourlyStatus($type, $selected_date, $site_module_info->site_srl);
|
||||
$detail_status = $oCounterModel->getHourlyStatus($type, $selected_date);
|
||||
Context::set('detail_status', $detail_status);
|
||||
|
||||
// display
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue