From 48cfb8e7908863be1a01df02ca50f8d002411714 Mon Sep 17 00:00:00 2001 From: Karl Hobley Date: Thu, 5 Oct 2017 10:43:30 +0100 Subject: [PATCH] Tweaks to the docs --- docs/reference/contrib/frontendcache.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/reference/contrib/frontendcache.rst b/docs/reference/contrib/frontendcache.rst index ba714822ed..5d8287cf9d 100644 --- a/docs/reference/contrib/frontendcache.rst +++ b/docs/reference/contrib/frontendcache.rst @@ -149,7 +149,7 @@ Invalidating index pages ^^^^^^^^^^^^^^^^^^^^^^^^ Pages that list other pages (such as a blog index) may need to be purged as -well so any changes to a blog page is also reflected on the index (for example, +well so any changes to a blog page are also reflected on the index (for example, a blog post was added, deleted or its title/thumbnail was changed). To purge these pages, we need to write a signal handler that listens for @@ -180,7 +180,7 @@ This signal handler would trigger the invalidation of the index page using the batch.purge() - @receiver(page_published, sender=BlogPage): + @receiver(page_published, sender=BlogPage) def blog_published_handler(instance): blog_page_changed(instance)