From 3cdeeabdc6b593afba6c88b5f894699c7a1df473 Mon Sep 17 00:00:00 2001 From: bnu Date: Thu, 30 Jan 2014 00:39:42 +0900 Subject: [PATCH] =?UTF-8?q?#385=20=E2=80=98counter:insertedTodayStatus?= =?UTF-8?q?=E2=80=99=20cache=EA=B0=80=20=EC=A0=9C=EB=8C=80=EB=A1=9C=20?= =?UTF-8?q?=EC=9E=91=EB=8F=99=ED=95=98=EC=A7=80=20=EC=95=8A=EB=8A=94=20?= =?UTF-8?q?=EB=AC=B8=EC=A0=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/counter/counter.model.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/counter/counter.model.php b/modules/counter/counter.model.php index 06e90f190..fac25cd59 100644 --- a/modules/counter/counter.model.php +++ b/modules/counter/counter.model.php @@ -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;