From 8773d67cb250ea7908bb5b175b850fc3780091fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristhian=20Mart=C3=ADnez=20Ochoa?= Date: Sat, 28 Apr 2018 18:58:22 -0600 Subject: [PATCH] opcache folder Folder changed for opcache clear file. --- plugins/webinoly | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/plugins/webinoly b/plugins/webinoly index cf68737..631ee13 100644 --- a/plugins/webinoly +++ b/plugins/webinoly @@ -295,12 +295,12 @@ elif [[ $opt == "-clear-cache" ]]; then if [[ $value == "opcache" || $value == "all" ]]; then if [[ $(conf_read nginx-tool) == "true" && $(conf_read php-tool) == "true" ]]; then port=$(conf_read tools-port) - if [[ ! -a /var/www/$port/htdocs/cache/index.php ]]; then - sudo mkdir /var/www/$port/htdocs/cache - sudo touch /var/www/$port/htdocs/cache/index.php - echo ' /var/www/$port/htdocs/cache/index.php - sudo chown -R www-data:www-data /var/www/$port/htdocs/cache - sudo chmod 644 /var/www/$port/htdocs/cache/index.php + if [[ ! -a /var/www/$port/htdocs/php/opcache/index.php ]]; then + sudo mkdir /var/www/$port/htdocs/php/opcache + sudo touch /var/www/$port/htdocs/php/opcache/index.php + echo ' /var/www/$port/htdocs/php/opcache/index.php + sudo chown -R www-data:www-data /var/www/$port/htdocs/php/opcache + sudo chmod 644 /var/www/$port/htdocs/php/opcache/index.php fi wget -q --spider --timeout=15 http://localhost:$port/cache/ echo "${gre}- OpCache has been successfully cleared!${end}"