kopia lustrzana https://github.com/wagtail/wagtail
Fix wagtailcache and wagtailpagecache examples to not use quotes for the fragment_name
rodzic
c67a750cae
commit
fe77d56dca
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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 %}
|
||||
```
|
||||
|
|
Ładowanie…
Reference in New Issue