mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
Always define cache key
This commit is contained in:
parent
9429c7fbc8
commit
d53290861b
1 changed files with 1 additions and 1 deletions
|
|
@ -45,9 +45,9 @@ class PointModel extends Point
|
||||||
|
|
||||||
// Get from object cache
|
// Get from object cache
|
||||||
$use_cache = Rhymix\Framework\Cache::getDriverName() !== 'dummy';
|
$use_cache = Rhymix\Framework\Cache::getDriverName() !== 'dummy';
|
||||||
|
$cache_key = sprintf('member:point:%d', $member_srl);
|
||||||
if (!$from_db && $use_cache)
|
if (!$from_db && $use_cache)
|
||||||
{
|
{
|
||||||
$cache_key = sprintf('member:point:%d', $member_srl);
|
|
||||||
$point = Rhymix\Framework\Cache::get($cache_key);
|
$point = Rhymix\Framework\Cache::get($cache_key);
|
||||||
if ($point !== null)
|
if ($point !== null)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue