mirror of
https://github.com/kevachat/geminiapp.git
synced 2025-03-13 05:51:39 +00:00
fix cache
This commit is contained in:
parent
89b183929c
commit
6e4798eceb
@ -559,7 +559,7 @@ class Room
|
||||
$field
|
||||
],
|
||||
$result,
|
||||
$cache
|
||||
$cache + time()
|
||||
);
|
||||
|
||||
$this->_memory->set(
|
||||
@ -568,10 +568,10 @@ class Room
|
||||
$namespace,
|
||||
$key,
|
||||
$field,
|
||||
$time
|
||||
'time'
|
||||
],
|
||||
$time,
|
||||
$cache
|
||||
$cache + time()
|
||||
);
|
||||
|
||||
return $result;
|
||||
@ -840,7 +840,7 @@ class Room
|
||||
$namespace
|
||||
],
|
||||
$result,
|
||||
$cache
|
||||
$cache + time()
|
||||
);
|
||||
|
||||
return $result;
|
||||
@ -870,7 +870,7 @@ class Room
|
||||
$namespace
|
||||
],
|
||||
$record['displayName'],
|
||||
$cache
|
||||
$cache + time()
|
||||
);
|
||||
|
||||
return $record['displayName'];
|
||||
@ -890,7 +890,7 @@ class Room
|
||||
$namespace
|
||||
],
|
||||
$record['value'],
|
||||
$cache
|
||||
$cache + time()
|
||||
);
|
||||
|
||||
return $record['value'];
|
||||
@ -903,13 +903,6 @@ class Room
|
||||
|
||||
private function _pending(): array
|
||||
{
|
||||
// Check for cache
|
||||
if ($result = $this->_memory->get([__METHOD__]))
|
||||
{
|
||||
return $result;
|
||||
}
|
||||
|
||||
// Get pending posts
|
||||
$result = [];
|
||||
|
||||
foreach ((array) $this->_kevacoin->kevaPending() as $pending)
|
||||
@ -935,14 +928,6 @@ class Room
|
||||
$result[] = $pending;
|
||||
}
|
||||
|
||||
// Save to cache
|
||||
$this->_memory->set(
|
||||
[
|
||||
__METHOD__
|
||||
],
|
||||
$result
|
||||
);
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user