mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +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
|
|
@ -25,7 +25,13 @@ class counter extends ModuleObject
|
|||
*/
|
||||
function checkUpdate()
|
||||
{
|
||||
return FALSE;
|
||||
$oDB = DB::getInstance();
|
||||
if ($oDB->isTableExists('counter_site_status'))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -35,7 +41,11 @@ class counter extends ModuleObject
|
|||
*/
|
||||
function moduleUpdate()
|
||||
{
|
||||
|
||||
$oDB = DB::getInstance();
|
||||
if ($oDB->isTableExists('counter_site_status'))
|
||||
{
|
||||
$oDB->dropTable('counter_site_status');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue