XenForo
Administrative
- Thread starter
- Admin
- #1
One of my repositories contains the following lines of code:
PHP:
Upon inspecting the queries being run behind the scenes (via
SQL:
Read more
ادامه مطلب...
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()
lineSQL:
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
ادامه مطلب...