mirror of
https://github.com/phpbb/phpbb.git
synced 2025-03-19 23:20:22 +01:00
[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
This commit is contained in:
parent
2769ab701a
commit
3d2c1b8f97
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user