Fix wagtailcache and wagtailpagecache examples to not use quotes for the fragment_name

stable/6.3.x
helloshiv 2024-11-12 22:04:21 +05:30 zatwierdzone przez Sage Abdullah
rodzic c67a750cae
commit fe77d56dca
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: EB1A33CC51CC0217
3 zmienionych plików z 5 dodań i 3 usunięć

Wyświetl plik

@ -9,6 +9,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)

Wyświetl plik

@ -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)

Wyświetl plik

@ -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 %}
```