[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:
Nils Adermann 2011-08-15 20:07:35 -04:00
parent dcc5ca5377
commit 956860c21d

View file

@ -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];
} }