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

WebHost: Disable flask caching if DEBUG is enabled. #3581

Closed
wants to merge 1 commit into from

Conversation

ThePhar
Copy link
Member

@ThePhar ThePhar commented Jun 23, 2024

What is this fixing or adding?

This disables flask caching of templates when DEBUG is set to True in the webhost config file, which allows hotreloading of jinja templates without restarting the flask app.

How was this tested?

Ran webhost with DEBUG enabled and disabled and confirmed caching is disabled in DEBUG mode.

If this makes graphical changes, please attach screenshots.

N/A

@ThePhar ThePhar added is: enhancement Issues requesting new features or pull requests implementing new features. affects: webhost Issues/PRs that touch webhost and may need additional validation. labels Jun 23, 2024
@github-actions github-actions bot added the waiting-on: peer-review Issue/PR has not been reviewed by enough people yet. label Jun 23, 2024
@black-sliver
Copy link
Member

My problem with this solution is that if you want to debug caching solutions, this is now impossible.

I would prefer adding documentation to the config example yaml to set CACHE_TYPE: NullCache over this solution.

@ThePhar
Copy link
Member Author

ThePhar commented Jun 25, 2024

Definitely fair. I think I'll just close this then.

@ThePhar ThePhar closed this Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects: webhost Issues/PRs that touch webhost and may need additional validation. is: enhancement Issues requesting new features or pull requests implementing new features. waiting-on: peer-review Issue/PR has not been reviewed by enough people yet.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants