diff options
author | Oliver Schramm <oliver.schramm97@gmail.com> | 2018-09-24 02:54:50 +0200 |
---|---|---|
committer | Oliver Schramm <oliver.schramm97@gmail.com> | 2018-09-24 02:56:07 +0200 |
commit | 3d2c1b8f9766bf914755904d685aba1a4665cc26 (patch) | |
tree | 42333a5e787302394f4ea73233128040235d8a6e /phpBB/phpbb/db | |
parent | 2769ab701a9a1a537454a7490a4aa233b76c70b8 (diff) | |
download | forums-3d2c1b8f9766bf914755904d685aba1a4665cc26.tar forums-3d2c1b8f9766bf914755904d685aba1a4665cc26.tar.gz forums-3d2c1b8f9766bf914755904d685aba1a4665cc26.tar.bz2 forums-3d2c1b8f9766bf914755904d685aba1a4665cc26.tar.xz forums-3d2c1b8f9766bf914755904d685aba1a4665cc26.zip |
[ticket/15544] Delete cache through module manager
This might fix issues with migrations since the
sql cache will be purged as well. In general, this
puts all the logic in one place, so that's good.
PHPBB3-15544
Diffstat (limited to 'phpBB/phpbb/db')
-rw-r--r-- | phpBB/phpbb/db/migration/tool/module.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/phpbb/db/migration/tool/module.php b/phpBB/phpbb/db/migration/tool/module.php index 3893935723..e5133c8152 100644 --- a/phpBB/phpbb/db/migration/tool/module.php +++ b/phpBB/phpbb/db/migration/tool/module.php @@ -341,7 +341,7 @@ class module implements \phpbb\db\migration\tool\tool_interface } // Clear the Modules Cache - $this->cache->destroy("_modules_$class"); + $this->module_manager->remove_cache_file($class); } /** @@ -425,7 +425,7 @@ class module implements \phpbb\db\migration\tool\tool_interface $this->module_manager->delete_module($module_id, $class); } - $this->cache->destroy("_modules_$class"); + $this->module_manager->remove_cache_file($class); } } |