Skip to content

Commit

Permalink
Do not cache homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
erick-otenyo committed Mar 20, 2024
1 parent fbe6ed6 commit 033d666
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pages/home/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ class HomePage(MetadataPageMixin, Page):
]
max_count = 1

# don't cache home page
cache_control = 'no-cache'

hero_title = models.CharField(max_length=100, verbose_name=_('Title'))
hero_subtitle = models.CharField(blank=True, null=True, max_length=100, verbose_name=_('Subtitle'))
hero_banner = models.ForeignKey("wagtailimages.Image", on_delete=models.SET_NULL, null=True, blank=False,
Expand Down

0 comments on commit 033d666

Please sign in to comment.