1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

[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
This commit is contained in:
Nils Adermann
2011-01-12 00:28:12 +01:00
parent 8e26f14eb6
commit f11579549d
6 changed files with 51 additions and 32 deletions

View File

@@ -172,8 +172,8 @@ $class_loader->register();
// set up caching
$cache_factory = new phpbb_cache_factory('file');
$class_loader->set_cache($cache_factory->get_driver());
$cache = $cache_factory->get_service();
$class_loader->set_cache($cache->get_driver());
$request = new phpbb_request();