From c59a80f3a7e3da408844004eaacd5b710bfb6d65 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 23 Oct 2019 12:21:02 +0100 Subject: [PATCH] media timeline avoids cached html --- webinterface.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webinterface.py b/webinterface.py index 92f99eab..6a416f32 100644 --- a/webinterface.py +++ b/webinterface.py @@ -1705,7 +1705,7 @@ def individualPostAsHtml(iconsDir: str,translate: {}, \ storeToCache=True) -> str: """ Shows a single post as html """ - if not showPublicOnly and storeToCache: + if not showPublicOnly and storeToCache and boxname!='tlmedia': postHtml= \ loadIndividualPostAsHtmlFromCache(baseDir,nickname,domain, \ postJsonObject) @@ -2092,7 +2092,7 @@ def individualPostAsHtml(iconsDir: str,translate: {}, \ else: postHtml=galleryStr - if not showPublicOnly and storeToCache: + if not showPublicOnly and storeToCache and boxname!='tlmedia': saveIndividualPostAsHtmlToCache(baseDir,nickname,domain, \ postJsonObject,postHtml)