카운터 페이지뷰 업데이트시 쿼리 횟수 줄임

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5247 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
bnu 2009-01-06 06:37:37 +00:00
parent 3dfc697467
commit 8c66609bec
2 changed files with 2 additions and 3 deletions

View file

@ -68,9 +68,8 @@
* @brief pageview 등록
**/
function insertPageView() {
$args->regdate = date("Ymd");
$args->regdate = '0, '.date('Ymd');
executeQuery('counter.updateCounterPageview', $args);
executeQuery('counter.updateTotalCounterPageview');
}
/**

View file

@ -6,6 +6,6 @@
<column name="pageview" default="plus(1)" />
</columns>
<conditions>
<condition operation="equal" column="regdate" var="regdate" notnull="notnull" />
<condition operation="in" column="regdate" var="regdate" notnull="notnull" />
</conditions>
</query>