From f3068c6397aee3533f8a3f8b862281bea5b04278 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 23 Aug 2018 13:43:31 +0300 Subject: [PATCH] send_local_file: touch() sent files to reset their expiration cooldown --- include/functions.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/functions.php b/include/functions.php index f03ed3a9..453f329b 100755 --- a/include/functions.php +++ b/include/functions.php @@ -2601,6 +2601,9 @@ should be loaded systemwide in config.php */ function send_local_file($filename) { if (file_exists($filename)) { + + if (is_writable($filename)) touch($filename); + $tmppluginhost = new PluginHost(); $tmppluginhost->load(PLUGINS, PluginHost::KIND_SYSTEM); -- 2.39.5