From e3113455cc026fc10cfe8b8cd976dbab412e8b26 Mon Sep 17 00:00:00 2001 From: ralf Date: Wed, 16 Feb 2022 20:14:38 +0200 Subject: [PATCH] taking modification time of api/etemplate.php script into account too for .xet cache-buster --- api/src/Etemplate/Widget/Template.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/api/src/Etemplate/Widget/Template.php b/api/src/Etemplate/Widget/Template.php index f256e78272..005b49d4ad 100644 --- a/api/src/Etemplate/Widget/Template.php +++ b/api/src/Etemplate/Widget/Template.php @@ -214,7 +214,8 @@ class Template extends Etemplate\Widget { return $GLOBALS['egw_info']['server']['webserver_url'].'/api/etemplate.php'. ($path[0] === '/' ? $path : preg_replace('#^'.self::VFS_TEMPLATE_PATH.'#', '', - Api\Vfs::parse_url($path, PHP_URL_PATH))).'?'.filemtime(self::rel2path($path)); + Api\Vfs::parse_url($path, PHP_URL_PATH))).'?'. + max(filemtime(self::rel2path($path)), filemtime(EGW_SERVER_ROOT.'/api/etemplate.php')); } /** @@ -286,4 +287,4 @@ if ($GLOBALS['egw_info']['flags']['debug'] == 'etemplate_widget_template') header('Content-Type: text/xml'); echo $template->toXml(); } -*/ +*/ \ No newline at end of file