send_local_file: touch() sent files to reset their expiration cooldown

This commit is contained in:
Andrew Dolgov 2018-08-23 13:43:31 +03:00
parent 54727f9534
commit f3068c6397
1 changed files with 3 additions and 0 deletions

View File

@ -2601,6 +2601,9 @@
should be loaded systemwide in config.php */ should be loaded systemwide in config.php */
function send_local_file($filename) { function send_local_file($filename) {
if (file_exists($filename)) { if (file_exists($filename)) {
if (is_writable($filename)) touch($filename);
$tmppluginhost = new PluginHost(); $tmppluginhost = new PluginHost();
$tmppluginhost->load(PLUGINS, PluginHost::KIND_SYSTEM); $tmppluginhost->load(PLUGINS, PluginHost::KIND_SYSTEM);