aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/common.php
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2011-01-12 00:28:12 +0100
committerNils Adermann <naderman@naderman.de>2011-01-12 01:47:51 +0100
commitf11579549d0250733f4a2bd1759adc2db6d587d3 (patch)
treeeebd2209f3018c83b94faebe0494c1f93c3e5ccb /phpBB/common.php
parent8e26f14eb619c35cabfbf548e0d20926c4dd2d01 (diff)
downloadforums-f11579549d0250733f4a2bd1759adc2db6d587d3.tar
forums-f11579549d0250733f4a2bd1759adc2db6d587d3.tar.gz
forums-f11579549d0250733f4a2bd1759adc2db6d587d3.tar.bz2
forums-f11579549d0250733f4a2bd1759adc2db6d587d3.tar.xz
forums-f11579549d0250733f4a2bd1759adc2db6d587d3.zip
[task/config-class] Do not create multiple cache driver instances.
Retrieve the driver from the service instead of creating new ones over and over from the factory. PHPBB3-9988
Diffstat (limited to 'phpBB/common.php')
-rw-r--r--phpBB/common.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/common.php b/phpBB/common.php
index 0c052ae415..0ac7cbbd86 100644
--- a/phpBB/common.php
+++ b/phpBB/common.php
@@ -207,8 +207,8 @@ $class_loader->register();
// set up caching
$cache_factory = new phpbb_cache_factory($acm_type);
-$class_loader->set_cache($cache_factory->get_driver());
$cache = $cache_factory->get_service();
+$class_loader->set_cache($cache->get_driver());
// Instantiate some basic classes
$request = new phpbb_request();
@@ -227,7 +227,7 @@ $db->sql_connect($dbhost, $dbuser, $dbpasswd, $dbname, $dbport, false, defined('
unset($dbpasswd);
// Grab global variables, re-cache if necessary
-$config = new phpbb_config_db($db, $cache_factory->get_driver(), CONFIG_TABLE);
+$config = new phpbb_config_db($db, $cache->get_driver(), CONFIG_TABLE);
set_config(null, null, null, $config);
set_config_count(null, null, null, $config);