mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[feature/extension-manager] Never cache extension finder queries in debug mode
During development the detection of files should happen immediately and performance is less of a concern. PHPBB3-10323
This commit is contained in:
parent
dcc5ca5377
commit
956860c21d
1 changed files with 1 additions and 1 deletions
|
@ -179,7 +179,7 @@ class phpbb_extension_finder
|
||||||
{
|
{
|
||||||
$query = md5(serialize($this->query));
|
$query = md5(serialize($this->query));
|
||||||
|
|
||||||
if ($cache && isset($this->cached_queries[$query]))
|
if (!defined('DEBUG') && $cache && isset($this->cached_queries[$query]))
|
||||||
{
|
{
|
||||||
return $this->cached_queries[$query];
|
return $this->cached_queries[$query];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue