Repository navigation
{% cache %} compatibility - #1619
Merged
EmilStenstrom merged 6 commits intoApr 25, 2026
Merged
Conversation
…est coverage for nested components
EmilStenstrom
force-pushed
the
cache-compatibility
branch
from
April 25, 2026 19:15
31eb1fc to
89fbacf
Compare
Contributor
Performance Benchmark ResultsComparing PR changes against master branch: Benchmarks that have stayed the same:
|
Contributor
Performance Benchmark ResultsComparing PR changes against master branch: Benchmarks that have stayed the same:
|
Contributor
Performance Benchmark ResultsComparing PR changes against master branch: Benchmarks that have stayed the same:
|
Contributor
Author
|
@EmilStenstrom Thanks a lot! |
This was referenced May 30, 2026
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@EmilStenstrom @JuroOravec
One annoyance / issue that I stumbled upon was that you get a key error when using django's template cache. The library should really be compatible with django's template tags.
The approach taken here is that we override django's
cachetemplate tag to make it component aware. That way it works for django-components and it will continue to work for normal django stuff.One commit also renames an e2e test such that you can do
pytest tests --ignore-glob='*e2e*'which is quite handy when you want to run all tests that are not e2e.Checking out b6f7af4 and you will see the tests failing. If you add in
cachein the load tag, you will see 1 failing test out of the 3.Would really appreciate if this could be patched in :)