Skip to content
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

Optimize functions to display tags and add inline translation of taxonomies #1724

Merged
merged 25 commits into from Apr 4, 2019

Conversation

stephanegigandet
Copy link
Contributor

There are 2 parts for this pull request:

  1. The way we have been computing the display name and the link of tags is very expensive: lots of function calls, and some functions are called twice. This has a huge performance toll for pages where we display lists of tags. This branch introduces a new get_taxonomy_tag_and_link_for_lang in Tags.pm that computes the necessary information only once.
    Performance issue for pages that return a long list of tags #1630

  2. in Display.pm, the display_list_of_tags function now uses that new get_taxonomy_tag_and_link_for_lang function, and there is a new function translate_list_of_tags for inline translation of taxonomies.
    Allow inline translation of taxonomies on OFF web site #1721

@stephanegigandet stephanegigandet merged commit f6a6e27 into master Apr 4, 2019
@VaiTon VaiTon deleted the tags-functions branch December 14, 2019 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants