From 121988f0baf5a883fcc78dae55d9538169693e16 Mon Sep 17 00:00:00 2001 From: VirtuBox Date: Wed, 4 Dec 2019 03:57:13 +0100 Subject: [PATCH] Fix redirection --- wo/cli/plugins/clean.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wo/cli/plugins/clean.py b/wo/cli/plugins/clean.py index 7036583..fbb0f4a 100644 --- a/wo/cli/plugins/clean.py +++ b/wo/cli/plugins/clean.py @@ -77,14 +77,15 @@ class WOCleanController(CementBaseController): '/var/www/22222/htdocs/cache/opcache/opgui.php')): try: Log.info(self, "Cleaning opcache") + payload = {'reset': '1'} opgui = requests.get( - "http://127.0.0.1/cache/opcache/opgui.php?reset=1") + "http://127.0.0.1/cache/opcache/opgui.php", params=payload) if opgui.status_code != '200' or opgui.status_code != '302': Log.warn(self, 'Cleaning opcache failed') except Exception as e: Log.debug(self, "{0}".format(e)) Log.debug(self, "Unable hit url, " - " https://127.0.0.1/cache/opcache/" + " http://127.0.0.1/cache/opcache/" "opgui.php?reset=1," " please check you have admin tools installed") Log.debug(self, "please check you have admin tools installed,"