[RSS Feed/News] Multiple XF::phrase() keys in one go?

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
One of my repositories contains the following lines of code:

PHP:

Code:
$title = \XF::phrase('asp_fb_title');
$desc = \XF::phrase('asp_fb_desc');
$extra = \XF::phrase('asp_fb_extra');
.
.
.
.

Upon inspecting the queries being run behind the scenes (via ?_debug=1), I realized that it was making 3 queries - one each for \XF::phrase() line

SQL:

Code:
SELECT title, phrase_text
FROM xf_phrase_compiled
WHERE language_id = ? AND title IN ('asp_fb_title')

SELECT title, phrase_text
FROM...

Read more

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