Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
ewdurbin committed Sep 16, 2024
2 parents 6773814 + 0969d72 commit 373817c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion base-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,5 @@ django-extensions==3.1.4
django-import-export==2.7.1

pypandoc==1.12
panflute==2.3.0
panflute==2.3.1
Unidecode==1.3.8
2 changes: 2 additions & 0 deletions pages/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ def purge_fastly_cache(sender, instance, **kwargs):
Requires settings.FASTLY_API_KEY being set
"""
purge_url(f'/{instance.path}')
if not instance.path.endswith('/'):
purge_url(f'/{instance.path}/')


def page_image_path(instance, filename):
Expand Down

0 comments on commit 373817c

Please sign in to comment.