From 6159d3d0b2682368cebd92b05a05a081bb6b2d50 Mon Sep 17 00:00:00 2001 From: VirtuBox Date: Wed, 4 Dec 2019 03:48:59 +0100 Subject: [PATCH] Fix wo clean --- wo/cli/plugins/clean.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wo/cli/plugins/clean.py b/wo/cli/plugins/clean.py index 33c8bbd..7036583 100644 --- a/wo/cli/plugins/clean.py +++ b/wo/cli/plugins/clean.py @@ -79,7 +79,7 @@ class WOCleanController(CementBaseController): Log.info(self, "Cleaning opcache") opgui = requests.get( "http://127.0.0.1/cache/opcache/opgui.php?reset=1") - if opgui.status_code != '200': + 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))