remove cache from post method as contain var data

This commit is contained in:
ghost 2024-01-28 05:03:55 +02:00
parent 6930a0a4c9
commit d3935c314d

View File

@ -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;
}