Skip to content

Commit fc4fbaf

Browse files
author
Alexandros Ioannides
authored
Update index.php
1 parent 3b3add5 commit fc4fbaf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

web/edit/web/index.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -328,14 +328,14 @@
328328
unset($output);
329329
}
330330

331-
//Add / Delete caching support
331+
// Enable/Disable nginx cache
332332
if (($_SESSION['WEB_SYSTEM'] == 'nginx') && ($v_nginx_cache != $_POST['v_nginx_cache'] ) && (empty($_SESSION['error_msg']))) {
333333
if ( $_POST['v_nginx_cache'] == 'yes' ) {
334-
exec (HESTIA_CMD."v-add-web-domain-fast-cgi-cache ".$v_username." ".escapeshellarg($v_domain), $output, $return_var);
334+
exec (HESTIA_CMD."v-add-fastcgi-cache ".$v_username." ".escapeshellarg($v_domain), $output, $return_var);
335335
check_return_code($return_var,$output);
336336
unset($output);
337337
} else {
338-
exec (HESTIA_CMD."v-delete-web-domain-fast-cgi-cache ".$v_username." ".escapeshellarg($v_domain), $output, $return_var);
338+
exec (HESTIA_CMD."v-delete-fastcgi-cache ".$v_username." ".escapeshellarg($v_domain), $output, $return_var);
339339
check_return_code($return_var,$output);
340340
unset($output);
341341
}

0 commit comments

Comments
 (0)