Skip to content

Conversation

@thibaudcolas
Copy link
Member

Follow-up to #561 by @lupyana with the page-aware template fragment caching tag

@thibaudcolas thibaudcolas added the Djangonaut Space Contributions done via Djangonaut Space label Oct 23, 2025
- added wagtail cache example to the full blog post view
@thibaudcolas thibaudcolas force-pushed the feature/545-demonstrate-template-level-caching branch from 4b77455 to d74d0d0 Compare October 23, 2025 15:41
@thibaudcolas
Copy link
Member Author

@lupyana relevant implementation details we were looking at:

https://github.com/wagtail/wagtail/blob/88ae925ef7bf9bab7d8f891eec09104dff064a02/wagtail/models/pages.py#L1784-L1810

Sine last_published_at is on there, any changes to a page that go live would naturally clear the cache. But only the changes that directly affect the page model(s). Not related models like authors or images. I’m not sure if this is a dealbreaker or no 🤔 but it might be enough of a tricky pattern that we should find a simpler example.

I’ll think a bit more about it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Djangonaut Space Contributions done via Djangonaut Space

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants