wagtail/docs/releases/6.2.md

78 wiersze
2.4 KiB
Markdown
Czysty Zwykły widok Historia

2024-04-22 01:59:00 +00:00
# Wagtail 6.2 release notes - IN DEVELOPMENT
_Unreleased_
```{contents}
---
local:
depth: 1
---
```
## What's new
### Other features
2024-04-22 04:26:09 +00:00
* Optimize and consolidate redirects report view into the index view (Jake Howard, Dan Braghis)
2024-04-24 22:55:22 +00:00
* Support a [`HOSTNAMES` parameter on `WAGTAILFRONTENDCACHE`](frontendcache_multiple_backends) to define which hostnames a backend should respond to (Jake Howard, sponsored by Oxfam America)
2024-04-29 07:41:49 +00:00
* Refactor redirects edit view to use the generic `EditView` and breadcrumbs (Rohit Sharma)
2024-04-22 01:59:00 +00:00
### Bug fixes
* Make `WAGTAILIMAGES_CHOOSER_PAGE_SIZE` setting functional again (Rohit Sharma)
* Enable `richtext` template tag to convert lazy translation values (Benjamin Bach)
2024-04-22 01:59:00 +00:00
### Documentation
* Remove duplicate section on frontend caching proxies from performance page (Jake Howard)
2024-04-22 01:59:00 +00:00
### Maintenance
* ...
## Upgrade considerations - changes affecting all projects
2024-04-24 22:55:22 +00:00
### Specifying a dict of distribution IDs for CloudFront cache invalidation is deprecated
Previous versions allowed passing a dict for `DISTRIBUTION_ID` within the `WAGTAILFRONTENDCACHE` configuration for a CloudFront backend, to allow specifying different distribution IDs for different hostnames. This is now deprecated; instead, multiple distribution IDs should be defined as [multiple backends](frontendcache_multiple_backends), with a `HOSTNAMES` parameter to define the hostnames associated with each one. For example, a configuration such as:
```python
WAGTAILFRONTENDCACHE = {
'cloudfront': {
'BACKEND': 'wagtail.contrib.frontend_cache.backends.CloudfrontBackend',
'DISTRIBUTION_ID': {
'www.wagtail.org': 'your-distribution-id',
'www.madewithwagtail.org': 'other-distribution-id',
},
},
}
```
should now be rewritten as:
```python
WAGTAILFRONTENDCACHE = {
'mainsite': {
'BACKEND': 'wagtail.contrib.frontend_cache.backends.CloudfrontBackend',
'DISTRIBUTION_ID': 'your-distribution-id',
'HOSTNAMES': ['www.wagtail.org'],
},
'madewithwagtail': {
'BACKEND': 'wagtail.contrib.frontend_cache.backends.CloudfrontBackend',
'DISTRIBUTION_ID': 'other-distribution-id',
'HOSTNAMES': ['www.madewithwagtail.org'],
},
}
```
2024-04-22 01:59:00 +00:00
## Upgrade considerations - deprecation of old functionality
## Upgrade considerations - changes affecting Wagtail customisations
## Upgrade considerations - changes to undocumented internals