Commit d9d96fc8 authored by Roque's avatar Roque

officejs_upgrader: change caching-policy-check to use "must-revalidate"

parent 6f61db52
......@@ -4,10 +4,10 @@ error_list = []
person = web_section.getSourceValue(portal_type='Person')
if (web_section.getParentId() == 'application-list') \
and (web_section.getAggregate() == 'web_page_module/gadget_ojs_appstore_redirect_page_html') \
and (web_section.getCachingPolicy() == 'must-revalidate'):
error_list.append('"Must-revalidate" caching policy is deprecated')
and (web_section.getCachingPolicy() == 'one-hour-max-modification-date'):
error_list.append('"One-hour-max-modification-date" caching policy is deprecated')
if fixit:
web_section.edit(caching_policy='one-hour-max-modification-date')
web_section.edit(caching_policy='must-revalidate')
return error_list
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment