Mercurial > piecrust2
diff piecrust/serving.py @ 174:e9a3d405e18f
serve: Always force render the page being previewed.
This is because if the page hasn't changed, but it includes pages that did
change, it will re-use the cache and the user will preview the old version.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sat, 03 Jan 2015 21:20:19 -0800 |
parents | 0a86a7a6b284 |
children | d47d9493bb0a |
line wrap: on
line diff
--- a/piecrust/serving.py Sat Jan 03 21:10:44 2015 -0800 +++ b/piecrust/serving.py Sat Jan 03 21:20:19 2015 -0800 @@ -277,7 +277,10 @@ # Build the page. fac = PageFactory(source, rel_path, fac_metadata) page = fac.buildPage() - render_ctx = PageRenderingContext(page, req_path, page_num) + # We force the rendering of the page because it could not have + # changed, but include pages that did change. + render_ctx = PageRenderingContext(page, req_path, page_num, + force_render=True) if taxonomy is not None: flt = PaginationFilter() if taxonomy.is_multiple: