Skip to content

Cache Mechanism creates two cache objects #3712

Open
@tinoest

Description

@tinoest

When creating the cache instance it first creates a cache object in $this->_cache_obj it then creates a new instance when called statically.

#0  ElkArte\Cache\CacheMethod\Redis->addServers() called at [/var/www/html/sources/ElkArte/Cache/CacheMethod/Redis.php:45]
#1  ElkArte\Cache\CacheMethod\Redis->__construct(Array ([servers] => Array ([0] => 172.19.0.5:6379))) called at [/var/www/html/sources/ElkArte/Cache/Cache.php:118]
#2  ElkArte\Cache\Cache->_init() called at [/var/www/html/sources/ElkArte/Cache/Cache.php:101]
#3  ElkArte\Cache\Cache->enable(1) called at [/var/www/html/sources/ElkArte/Cache/Cache.php:76]
#4  ElkArte\Cache\Cache->__construct(1, redis, Array ([servers] => Array ([0] => 172.19.0.5:6379))) called at [/var/www/html/sources/ElkArte/Cache/Cache.php:174]
#5  ElkArte\Cache\Cache::instance() called at [/var/www/html/sources/Load.php:53]
#6  reloadSettings() called at [/var/www/html/bootstrap.php:311]
#7  Bootstrap->bringUp() called at [/var/www/html/bootstrap.php:93]
#8  Bootstrap->bringUpBasics() called at [/var/www/html/bootstrap.php:69]
#9  Bootstrap->__construct() called at [/var/www/html/index.php:26]
#0  ElkArte\Cache\CacheMethod\Redis->addServers() called at [/var/www/html/sources/ElkArte/Cache/CacheMethod/Redis.php:45]
#1  ElkArte\Cache\CacheMethod\Redis->__construct(Array ([servers] => Array ([0] => 172.19.0.5:6379))) called at [/var/www/html/sources/ElkArte/Cache/Cache.php:118]
#2  ElkArte\Cache\Cache->_init() called at [/var/www/html/sources/ElkArte/Cache/Cache.php:86]
#3  ElkArte\Cache\Cache->__construct(1, redis, Array ([servers] => Array ([0] => 172.19.0.5:6379))) called at [/var/www/html/sources/ElkArte/Cache/Cache.php:174]
#4  ElkArte\Cache\Cache::instance() called at [/var/www/html/sources/Load.php:53]
#5  reloadSettings() called at [/var/www/html/bootstrap.php:311]
#6  Bootstrap->bringUp() called at [/var/www/html/bootstrap.php:93]
#7  Bootstrap->bringUpBasics() called at [/var/www/html/bootstrap.php:69]
#8  Bootstrap->__construct() called at [/var/www/html/index.php:26]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions