mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 14:30:32 +02: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:
@@ -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];
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user