+ Add helper::isCacheEnabled method.

This commit is contained in:
Lufei
2023-06-07 11:22:17 +08:00
parent d799091b6a
commit 206b5d737b
3 changed files with 21 additions and 5 deletions
+1 -1
View File
@@ -166,7 +166,7 @@ class bug extends control
/* Get executions. */
$cacheKey = "bugBrowse{$this->projectID}";
if($this->config->cache->enable && $this->cache->has($cacheKey))
if(helper::isCacheEnabled() && $this->cache->has($cacheKey))
{
$executions = $this->cache->get($cacheKey);
}