Browse Source

Update index.php

Alexandros Ioannides 5 years ago
parent
commit
fc4fbaf799
1 changed files with 3 additions and 3 deletions
  1. 3 3
      web/edit/web/index.php

+ 3 - 3
web/edit/web/index.php

@@ -328,14 +328,14 @@ if (!empty($_POST['save'])) {
         unset($output);
     }
 
-    //Add / Delete caching support
+    // Enable/Disable nginx cache
     if (($_SESSION['WEB_SYSTEM'] == 'nginx') && ($v_nginx_cache != $_POST['v_nginx_cache'] ) && (empty($_SESSION['error_msg']))) {
         if ( $_POST['v_nginx_cache'] == 'yes' ) {
-           exec (HESTIA_CMD."v-add-web-domain-fast-cgi-cache ".$v_username." ".escapeshellarg($v_domain), $output, $return_var);
+           exec (HESTIA_CMD."v-add-fastcgi-cache ".$v_username." ".escapeshellarg($v_domain), $output, $return_var);
            check_return_code($return_var,$output);
            unset($output); 
         } else {
-            exec (HESTIA_CMD."v-delete-web-domain-fast-cgi-cache ".$v_username." ".escapeshellarg($v_domain), $output, $return_var);
+            exec (HESTIA_CMD."v-delete-fastcgi-cache ".$v_username." ".escapeshellarg($v_domain), $output, $return_var);
             check_return_code($return_var,$output);
             unset($output); 
         }