mirror of
https://github.com/wagtail/wagtail.git
synced 2024-11-21 18:09:02 +01:00
Fix wagtailcache and wagtailpagecache examples to not use quotes for the fragment_name
This commit is contained in:
parent
f741f9f333
commit
f0d3edfad6
@ -36,6 +36,7 @@ Changelog
|
||||
* Docs: Document usage of custom validation for admin form pages when using `AbstractEmailForm` or `AbstractForm` pages (John-Scott Atlakson, LB (Ben) Johnston)
|
||||
* Docs: Reword `BlogTagIndexPage` example for clarity (Clifford Gama)
|
||||
* Docs: Change title of blog index page in tutorial to avoid slug issues (Thibaud Colas)
|
||||
* Docs: Fix `wagtailcache` and `wagtailpagecache` examples to not use quotes for the `fragment_name` (Shiv)
|
||||
* Maintenance: Close open files when reading within utils/setup.py (Ataf Fazledin Ahamed)
|
||||
* Maintenance: Avoid redundant `ALLOWED_HOSTS` check in `Site.find_for_request` (Jake Howard)
|
||||
* Maintenance: Update `CloneController` to ensure that `added`/`cleared` events are not dispatched as cancelable (LB (Ben) Johnston)
|
||||
@ -58,6 +59,7 @@ Changelog
|
||||
* Fix: Improve spacing of page / collection permissions table in Group settings (Sage Abdullah)
|
||||
* Docs: Reword `BlogTagIndexPage` example for clarity (Clifford Gama)
|
||||
* Docs: Change title of blog index page in tutorial to avoid slug issues (Thibaud Colas)
|
||||
* Docs: Fix `wagtailcache` and `wagtailpagecache` examples to not use quotes for the `fragment_name` (Shiv)
|
||||
|
||||
|
||||
6.3 LTS (01.11.2024)
|
||||
|
@ -23,3 +23,4 @@ depth: 1
|
||||
|
||||
* Reword `BlogTagIndexPage` example for clarity and several other tweaks (Clifford Gama)
|
||||
* Change title of blog index page in tutorial to avoid slug issues (Thibaud Colas)
|
||||
* Fix `wagtailcache` and `wagtailpagecache` examples to not use quotes for the `fragment_name` (Shiv)
|
||||
|
@ -52,6 +52,7 @@ depth: 1
|
||||
* Document usage of [Custom validation for admin form pages](form_builder_custom_admin_validation) when using `AbstractEmailForm` or `AbstractForm` pages (John-Scott Atlakson, LB (Ben) Johnston)
|
||||
* Reword `BlogTagIndexPage` example for clarity (Clifford Gama)
|
||||
* Change title of blog index page in tutorial to avoid slug issues (Thibaud Colas)
|
||||
* Fix `wagtailcache` and `wagtailpagecache` examples to not use quotes for the `fragment_name` (Shiv)
|
||||
|
||||
### Maintenance
|
||||
|
||||
|
@ -342,7 +342,7 @@ The `{% wagtailcache %}` tag functions similarly to Django's `{% cache %}` tag,
|
||||
```html+django
|
||||
{% load wagtail_cache %}
|
||||
|
||||
{% wagtailcache 500 "sidebar" %}
|
||||
{% wagtailcache 500 sidebar %}
|
||||
<!-- sidebar -->
|
||||
{% endwagtailcache %}
|
||||
```
|
||||
@ -358,7 +358,7 @@ Much like `{% cache %}`, you can use [`make_template_fragment_key`](django.core.
|
||||
```html+django
|
||||
{% load wagtail_cache %}
|
||||
|
||||
{% wagtailpagecache 500 "hero" %}
|
||||
{% wagtailpagecache 500 hero %}
|
||||
<!-- hero -->
|
||||
{% endwagtailpagecache %}
|
||||
```
|
||||
@ -368,7 +368,7 @@ This is identical to:
|
||||
```html+django
|
||||
{% wagtail_site as current_site %}
|
||||
|
||||
{% wagtailcache 500 "hero" page.cache_key current_site.id %}
|
||||
{% wagtailcache 500 hero page.cache_key current_site.id %}
|
||||
<!-- hero -->
|
||||
{% endwagtailcache %}
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user