mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 06:51:08 +02:00
[ticket/17535] Fix Redis
PHPBB-17535
This commit is contained in:
24
phpBB/phpbb/cache/driver/memory.php
vendored
24
phpBB/phpbb/cache/driver/memory.php
vendored
@@ -45,6 +45,30 @@ abstract class memory extends \phpbb\cache\driver\base
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
function purge()
|
||||||
|
{
|
||||||
|
unset($this->vars);
|
||||||
|
unset($this->sql_rowset);
|
||||||
|
unset($this->sql_row_pointer);
|
||||||
|
|
||||||
|
if (function_exists('opcache_reset'))
|
||||||
|
{
|
||||||
|
@opcache_reset();
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->vars = [];
|
||||||
|
$this->sql_rowset = [];
|
||||||
|
$this->sql_row_pointer = [];
|
||||||
|
|
||||||
|
$this->is_modified = true;
|
||||||
|
|
||||||
|
// We save here to let the following cache hits succeed
|
||||||
|
$this->save();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
*/
|
*/
|
||||||
|
2
phpBB/phpbb/cache/driver/redis.php
vendored
2
phpBB/phpbb/cache/driver/redis.php
vendored
@@ -141,7 +141,7 @@ class redis extends \phpbb\cache\driver\memory
|
|||||||
*/
|
*/
|
||||||
protected function _delete(string $var): bool
|
protected function _delete(string $var): bool
|
||||||
{
|
{
|
||||||
if ($this->redis->delete($var) > 0)
|
if ($this->redis->del($var) > 0)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user