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

Q: caching TemplateContext with multiple context values #565

Open
sommmen opened this issue Mar 22, 2023 · 0 comments
Open

Q: caching TemplateContext with multiple context values #565

sommmen opened this issue Mar 22, 2023 · 0 comments

Comments

@sommmen
Copy link

sommmen commented Mar 22, 2023

Hi,

I (will) have a lot of relatively small templates, e.g.:

{% for evt in evts %}
# {{ evt.title }}
{{ evt.description }}

{% endfor %}

However many different values will be supplied.
I read: https://github.com/sebastienros/fluid#caching
And i could save the TemplateContext however it would be called asynchonoulsy multiple times,

This seems like it will be an issue with a single instance of TemplateContext given different values.
Is my assumption right and do you have any performance tips regarding my use-case?

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

No branches or pull requests

1 participant