最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Wagtail 6.3 CloudFront Invalidation not working for multi site - Stack Overflow

programmeradmin1浏览0评论

we are trying to invalidate a multi site CloudFront cache using the Wagtail CF Cache framework we have a settings as

WAGTAILFRONTENDCACHE ={
    'mainsite': {
        'BACKEND': 'core.cache.CloudfrontBackend',
        'DISTRIBUTION_ID': 'dist_id_1',
        'HOSTNAMES': ['mainsite'],
    },
    'multisite': {
        'BACKEND': 'core.cache.CloudfrontBackend',
        'DISTRIBUTION_ID': 'dist_id_2',
        'HOSTNAMES': ['multisite'],
    },
}

However the Multisite CF cache is not invalidated when I publish/unpublish a Page from the main site Is this config correct There are not errors reported I can see in our DEV env

I thought dist_ids as a dict had bee removed but this is still in code base

if isinstance(self.cloudfront_distribution_id, dict):
            if "HOSTNAMES" in params:
                self.hostnames.extend(self.cloudfront_distribution_id.keys())
            else:
                self.hostnames = list(self.cloudfront_distribution_id.keys())
发布评论

评论列表(0)

  1. 暂无评论