perf: Enqueue "removing of index" on web page deletion (#23044)
This commit is contained in:
parent
2375f2ee05
commit
b56cbdfff8
1 changed files with 1 additions and 1 deletions
|
|
@ -94,7 +94,7 @@ class WebsiteGenerator(Document):
|
|||
self.send_indexing_request("URL_DELETED")
|
||||
# On deleting the doc, remove the page from the web_routes index
|
||||
if self.allow_website_search_indexing():
|
||||
remove_document_from_index(self.route)
|
||||
frappe.enqueue(remove_document_from_index, path=self.route, enqueue_after_commit=True)
|
||||
|
||||
def is_website_published(self):
|
||||
"""Return true if published in website"""
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue