Jump to the post that solved this thread.
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 8 Years, 5 Months, 3 Weeks ago [Performance] Will replacing variables increase performance?
#1
Solved: 8 Years, 5 Months, 3 Weeks ago
There are some useless variables throughout the templates such as {$mybb->settings['bbname']} and {$mybb->settings['bburl']}, which I could replace with its static value.

My question is, does it increase performance at all? I'm guessing so, since it would run less queries, right?
#2
Solved: 8 Years, 5 Months, 3 Weeks ago
MyBB should cache those so even no query
#3
Solved: 8 Years, 5 Months, 3 Weeks ago
The settings are loaded from the settings.php file, the settings table is only queried if that file is empty/doesn't exist or when you change the settings. You won't see any speed improvement whatsoever from changing these from variables to static values.
MyReactions - All Plugins

Can you still feel the butterflies?

Free never tasted like pudding.
Jump to the post that solved this thread.


Forum Jump:


Users browsing this thread: 1 Guest(s)