New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Settings Getting takes time #6560

doctormo opened this Issue Nov 13, 2018 · 0 comments


None yet
1 participant

doctormo commented Nov 13, 2018

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.

if name in COMPLEX:

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment