diff --git a/frappe/website/context.py b/frappe/website/context.py index 52c32523ea..942285fbd2 100644 --- a/frappe/website/context.py +++ b/frappe/website/context.py @@ -61,7 +61,8 @@ def build_context(sitemap_options): context.update(ret) for prop in ("no_cache", "no_sitemap"): - context[prop] = getattr(context.doc, "no_cache", False) + if not prop in context: + context[prop] = getattr(context.doc, prop, False) elif context.controller: module = frappe.get_module(context.controller)