mirror of
https://github.com/kevachat/geminiapp.git
synced 2025-03-13 05:51:39 +00:00
remove cache from post method as contain var data
This commit is contained in:
parent
6930a0a4c9
commit
d3935c314d
@ -347,30 +347,6 @@ class Room
|
||||
?int $cache = 31104000
|
||||
): ?string
|
||||
{
|
||||
// Check for cache
|
||||
$result = $this->_memory->get(
|
||||
[
|
||||
__METHOD__,
|
||||
$data,
|
||||
$field
|
||||
]
|
||||
);
|
||||
|
||||
$time = $this->_memory->get(
|
||||
[
|
||||
__METHOD__,
|
||||
$data,
|
||||
$field,
|
||||
'time'
|
||||
]
|
||||
);
|
||||
|
||||
// Cache exists
|
||||
if ($result && $time)
|
||||
{
|
||||
return $result;
|
||||
}
|
||||
|
||||
// Skip values with meta keys
|
||||
if (str_starts_with($data['key'], '_'))
|
||||
{
|
||||
@ -552,28 +528,6 @@ class Room
|
||||
)
|
||||
);
|
||||
|
||||
// Cache results
|
||||
$this->_memory->set(
|
||||
[
|
||||
__METHOD__,
|
||||
$data,
|
||||
$field
|
||||
],
|
||||
$result,
|
||||
$cache + time()
|
||||
);
|
||||
|
||||
$this->_memory->set(
|
||||
[
|
||||
__METHOD__,
|
||||
$data,
|
||||
$field,
|
||||
'time'
|
||||
],
|
||||
$time,
|
||||
$cache + time()
|
||||
);
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user