Skip to content

Commit

Permalink
Clear resources on page save (#1381)
Browse files Browse the repository at this point in the history
  • Loading branch information
edwoodward authored Dec 14, 2022
1 parent 098eb49 commit 5d589ad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions global_settings/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ def clear_cloudfront_on_page_publish(sender, **kwargs):
invalidate_cloudfront_caches('v2/pages')
# clear general pages
invalidate_cloudfront_caches('spike')
# clear resources
invalidate_cloudfront_caches('books/resources')


page_published.connect(clear_cloudfront_on_page_publish)
Expand Down

0 comments on commit 5d589ad

Please sign in to comment.