1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-12 11:44:08 +02:00

[ticket/11305] Retrieve cache driver from container rather than cache service.

This only covers some of the call sites.

PHPBB3-11305
This commit is contained in:
Oleg Pudeyev
2013-01-01 20:57:21 -05:00
parent 7adae349a9
commit b94f9ae302
4 changed files with 10 additions and 9 deletions

View File

@@ -740,15 +740,15 @@ class acp_modules
*/
function remove_cache_file()
{
global $cache;
global $phpbb_container;
// Sanitise for future path use, it's escaped as appropriate for queries
$p_class = str_replace(array('.', '/', '\\'), '', basename($this->module_class));
$cache->destroy('_modules_' . $p_class);
$phpbb_container->get('cache.driver')->destroy('_modules_' . $p_class);
// Additionally remove sql cache
$cache->destroy('sql', MODULES_TABLE);
$phpbb_container->get('cache.driver')->destroy('sql', MODULES_TABLE);
}
/**