From 1997bedb93433058d259cdfd3e04300cc5f617f0 Mon Sep 17 00:00:00 2001 From: VirtuBox Date: Wed, 4 Dec 2019 11:12:35 +0100 Subject: [PATCH] Fix opcache clean --- wo/cli/plugins/clean.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wo/cli/plugins/clean.py b/wo/cli/plugins/clean.py index fbb0f4a..9fc4474 100644 --- a/wo/cli/plugins/clean.py +++ b/wo/cli/plugins/clean.py @@ -77,9 +77,9 @@ class WOCleanController(CementBaseController): '/var/www/22222/htdocs/cache/opcache/opgui.php')): try: Log.info(self, "Cleaning opcache") - payload = {'reset': '1'} + payload = {'RESET': '1'} opgui = requests.get( - "http://127.0.0.1/cache/opcache/opgui.php", params=payload) + "http://127.0.0.1/cache/opcache/ocp.php", params=payload) if opgui.status_code != '200' or opgui.status_code != '302': Log.warn(self, 'Cleaning opcache failed') except Exception as e: