From aa2570f2ea5c35d37c2bfdff2573a5712ed9a740 Mon Sep 17 00:00:00 2001 From: nathan Date: Thu, 8 Jun 2023 11:32:03 -0600 Subject: [PATCH] * Api: Fix custom etemplates were still used after deletion --- api/etemplate.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/etemplate.php b/api/etemplate.php index 0bdda679c2..b7e204c804 100644 --- a/api/etemplate.php +++ b/api/etemplate.php @@ -105,8 +105,8 @@ function send_template() } exit; } - $cache = $GLOBALS['egw_info']['server']['temp_dir'].'/egw_cache/eT2-Cache-'. - $GLOBALS['egw_info']['server']['install_id'].'-'.str_replace('/', '-', $_SERVER['PATH_INFO']); + $cache = $GLOBALS['egw_info']['server']['temp_dir'] . '/egw_cache/eT2-Cache-' . + $GLOBALS['egw_info']['server']['install_id'] . '-' . str_replace('/', '-', $_SERVER['PATH_INFO']) . '-' . filemtime($path); if (PHP_SAPI !== 'cli' && file_exists($cache) && filemtime($cache) > max(filemtime($path), filemtime(__FILE__)) && ($str = file_get_contents($cache)) !== false) {