Closed JakubMastalerz closed 6 months ago
@JakubMastalerz this is looking GREAT! As discussed earlier, can you review the performance of these changes to check we're not adversely affecting performance? In particular, I'm interested in the number of queries being made to ensure we're not causing any N+1 queries.
This PR changes
old_url
handling inRedirectType
to replace hardcoded URL generation with dynamically generated URLs based on wagtail'ssites
properties.Additionally:
Redirect
had no specified target.The changes were tested for performance and did not increase the number of queries when querying
Redirects
.