1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-09-02 04:42:37 +02:00

[ticket/12631] Rename finder.not_use_cache to finder.cache

PHPBB3-12631
This commit is contained in:
Rubén Calvo
2018-09-28 13:10:16 +02:00
committed by Marc Alexander
parent 9308764fae
commit d31e986815
13 changed files with 30 additions and 28 deletions

View File

@@ -23,7 +23,7 @@ class finder
protected $extensions;
protected $phpbb_root_path;
protected $cache;
protected $not_use_cache;
protected $use_cache;
protected $php_ext;
/**
@@ -56,11 +56,11 @@ class finder
* @param string $cache_name The name of the cache variable, defaults to
* _ext_finder
*/
public function __construct(/*\phpbb\cache\service */ $cache, $not_use_cache, $phpbb_root_path, $php_ext, $cache_name = '_ext_finder')
public function __construct(/*\phpbb\cache\service */ $cache, $use_cache, $phpbb_root_path, $php_ext, $cache_name = '_ext_finder')
{
$this->phpbb_root_path = $phpbb_root_path;
$this->cache = $cache;
$this->not_use_cache = $not_use_cache;
$this->use_cache = $use_cache;
$this->php_ext = $php_ext;
$this->cache_name = $cache_name;
@@ -426,7 +426,7 @@ class finder
$this->query['is_dir'] = $is_dir;
$query = md5(serialize($this->query) . serialize($extensions));
if (!$this->not_use_cache && $cache && isset($this->cached_queries[$query]))
if ($this->use_cache && $cache && isset($this->cached_queries[$query]))
{
return $this->cached_queries[$query];
}