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

app.py: skip before_wiki and teardown_wiki for static content #1755

Merged
merged 2 commits into from
Sep 10, 2024

Conversation

UlrichB22
Copy link
Collaborator

@UlrichB22 UlrichB22 commented Sep 9, 2024

Skip the before_wiki and teardown wiki handling for static content such as CSS files.
The before_wiki function is needed to open the storage, set up the user - important for ACL handling, setting up the Jinja environment, etc.. The static content is public and therefore the before_wiki and teardown_wiki code is unnecessary overhead.

The request_path / url has been added to the timer message in the debug log.

Moved clock stop to the end of teardown_wiki. Is there a reason for the existing code sequence?

Related to #1725.

@RogerHaase RogerHaase merged commit 90436ac into moinwiki:master Sep 10, 2024
6 checks passed
@UlrichB22 UlrichB22 deleted the before_wiki branch September 12, 2024 13:30
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.

2 participants