Fix opcache clean

This commit is contained in:
VirtuBox
2019-12-04 11:12:35 +01:00
parent 19e595e207
commit 1997bedb93

View File

@@ -77,9 +77,9 @@ class WOCleanController(CementBaseController):
'/var/www/22222/htdocs/cache/opcache/opgui.php')): '/var/www/22222/htdocs/cache/opcache/opgui.php')):
try: try:
Log.info(self, "Cleaning opcache") Log.info(self, "Cleaning opcache")
payload = {'reset': '1'} payload = {'RESET': '1'}
opgui = requests.get( 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': if opgui.status_code != '200' or opgui.status_code != '302':
Log.warn(self, 'Cleaning opcache failed') Log.warn(self, 'Cleaning opcache failed')
except Exception as e: except Exception as e: