changeset 973:9992fb1b5e6f

render: no need to revalidate all posts when templates change The post contents are always the same regardless of what happens with the templates. Therefore, there is no need to invalidate the whole cache when a template changes. Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
author Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
date Tue, 13 Nov 2018 16:06:49 -0500
parents cd1e18ebc0b4
children 532f4775e3db
files render.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/render.c	Tue Nov 13 16:24:39 2018 -0500
+++ b/render.c	Tue Nov 13 16:06:49 2018 -0500
@@ -67,7 +67,7 @@
 	snprintf(path, sizeof(path), "templates/%s/%s.tmpl", str_cstr(req->fmt),
 		 tmpl);
 
-	raw = file_cache_get_cb(path, revalidate_all_posts, NULL);
+	raw = file_cache_get(path);
 	if (IS_ERR(raw))
 		return NULL;