mirror of
https://github.com/wagtail/wagtail.git
synced 2024-12-01 11:41:20 +01:00
This commit is contained in:
parent
913f21d09b
commit
d6cce69a39
@ -302,6 +302,11 @@ class Page(MP_Node, ClusterableModel, Indexed):
|
||||
|
||||
if update_descendant_url_paths:
|
||||
self._update_descendant_url_paths(old_url_path, new_url_path)
|
||||
|
||||
# Check if this is a root page of any sites and clear the 'wagtail_site_root_paths' key if so
|
||||
if Site.objects.filter(root_page=self).exists():
|
||||
cache.delete('wagtail_site_root_paths')
|
||||
|
||||
return result
|
||||
|
||||
def _update_descendant_url_paths(self, old_url_path, new_url_path):
|
||||
|
Loading…
Reference in New Issue
Block a user