- Affected version
- 2.3 Beta 1
This will cause the main cache section to be created twice:
When using redis of memcache, this means multiple TCP sessions will be created (which may be SSL and require username/password authentication)
This is because of the following code:
The cache key changes despite having the same configuration.
PHP:
\XF::app()->cache('', false, true);
\XF::app()->cache('', false, false);
When using redis of memcache, this means multiple TCP sessions will be created (which may be SSL and require username/password authentication)
This is because of the following code:
PHP:
$key = $context;
if ($doctrineCompatible)
{
$key .= '_doctrine';
}
$cache = $this->container->create('cache', $key, [
'doctrineCompatible' => $doctrineCompatible
]);
The cache key changes despite having the same configuration.