mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-21 21:41:55 +00:00
Fix frontend cache code example
This commit is contained in:
parent
0845f1e1c1
commit
d09d403d54
1 changed files with 1 additions and 1 deletions
|
|
@ -96,7 +96,7 @@ By default, Wagtail will only purge one URL per page. If your page has more than
|
|||
yield '/'
|
||||
|
||||
# Yield one URL per page in the paginator to make sure all pages are purged
|
||||
for page_number in range(1, self.get_blog_items().num_pages):
|
||||
for page_number in range(1, self.get_blog_items().num_pages + 1):
|
||||
yield '/?page=' + str(page_number)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue