[fix] generator cache
This commit is contained in:
parent
68f0b8bd17
commit
bedaf14874
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue