mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Use simpler syntax for cache groups
This commit is contained in:
parent
e8d117d2f5
commit
26c5a18a5b
11 changed files with 67 additions and 72 deletions
|
|
@ -33,7 +33,7 @@ class counterModel extends counter
|
|||
$iplogged = false;
|
||||
$cache_key = 'counter:' . $site_srl . '_' . str_replace(array('.', ':'), '-', $args->ipaddress);
|
||||
$group_key = 'counterIpLogged_' . $args->regdate;
|
||||
$iplogged = Rhymix\Framework\Cache::get($cache_key, $group_key);
|
||||
$iplogged = Rhymix\Framework\Cache::get($group_key . ':' . $cache_key);
|
||||
|
||||
if($iplogged === false)
|
||||
{
|
||||
|
|
@ -43,7 +43,7 @@ class counterModel extends counter
|
|||
|
||||
if($iplogged)
|
||||
{
|
||||
Rhymix\Framework\Cache::set($cache_key, $iplogged, 0, $group_key);
|
||||
Rhymix\Framework\Cache::set($group_key . ':' . $cache_key, $iplogged);
|
||||
}
|
||||
|
||||
return $iplogged;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue