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

getVocabulary: Call scrub_html on the end result #287

Merged
merged 1 commit into from
Jul 30, 2024

Conversation

reinhardt
Copy link
Contributor

… instead of individual items

This saves a lot of runtime for large vocabularies like Keywords. On a site with 30,000 keywords the request time went down from 13 seconds to under a second.

…l items

This saves a lot of runtime for large vocabularies like Keywords.
@mister-roboto
Copy link

@reinhardt thanks for creating this Pull Request and helping to improve Plone!

TL;DR: Finish pushing changes, pass all other checks, then paste a comment:

@jenkins-plone-org please run jobs

To ensure that these changes do not break other parts of Plone, the Plone test suite matrix needs to pass, but it takes 30-60 min. Other CI checks are usually much faster and the Plone Jenkins resources are limited, so when done pushing changes and all other checks pass either start all Jenkins PR jobs yourself, or simply add the comment above in this PR to start all the jobs automatically.

Happy hacking!

@reinhardt
Copy link
Contributor Author

@jenkins-plone-org please run jobs

Copy link
Sponsor Member

@mauritsvanrees mauritsvanrees left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I tried a few things to break this, checking for possible security problems (showing script tags for example) or needlessly showing something like &, but it seems to be fine.

@mauritsvanrees mauritsvanrees merged commit b1e76e2 into master Jul 30, 2024
13 checks passed
@mauritsvanrees mauritsvanrees deleted the getVocabulary-speed branch July 30, 2024 15:07
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.

3 participants