Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Settings Getting takes time #6560
With a site with many languages, this code is run MANY times. hundreds of times per request. It hogs a lot of CPU while it tries to get the available LANGUAGES each time.
In my local copy, I've hacked this line to cache the results to speed things up. But a better fix would be to also stop so many requests when building the menus et al.