[RSS Feed/News] Redundant IO check on loading phrase group

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
In \XF\Language::loadPhraseGroup, there are redundant IO/kernel transitions;

PHP:

Code:
$file = $this->groupPath . "/l$this->id/$group.php";
if ($this->groupPath && file_exists($file) && is_readable($file))
{
   $this->phraseCache = array_merge($this->phraseCache, include($file));
   $this->groupsCached[$group] = true;
}
else
{
   $this->groupsCached[$group] = false;
}
This results in the strace...

Read more

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom