Файловый менеджер - Редактировать - /opt/cloudlinux/venv/lib/python3.11/site-packages/clwpos/hooks/lib/__pycache__/user_disable_caching.cpython-311.pyc
Назад
� �o^h� � �^ � d dl mZ d dlZd dlZd dlZd dlZd dlmZmZm Z d dl mZ d dlm Z d dlmZ d dlmZ d dlmZmZmZmZ d ed ededdfd �Zdeee eef f dedefd�Zdeddfd�Zdeddfd�Zdedee defd�Zdee ddfd�Z defd�Z!dedee fd�Z"dS )� )�absolute_importN)�Dict�Set�Union)� WposError)�php_info)�ALL_OPTIMIZATION_FEATURES)� UserConfig)�WposUser�is_run_under_user�run_in_cagefs_if_needed�ExtendedJSONEncoder�domain�wp_path�module�returnc �n � ddd| � �d|� �d|� �g}t |� � }t j d|� � dS )zG Disable optimization feature for specified domain and wp_path �/usr/bin/clwpos-user�disablez --domain=z --wp-path=z --feature=zCLWPOS-USER DISABLE --> %sN)r �logging�debug)r r r �disable_cmd�results �+py/clwpos/hooks/lib/user_disable_caching.py�disable_moduler sX � � *�9�6J�&�6J�6J�)��)�)�+@��+@�+@�B�K� $�[� 1� 1�F��M�.��7�7�7�7�7� �wordpress_infoc �� � | � di � � � |i � � }|� dd� � }|� dg � � }|ot d� |D � � � � S )zE Check for module's incompatibility issues for specified wp. �features�enabledF�issuesc 3 �. K � | ]}|d dk V � �dS )�type�incompatibilityN� )�.0�issues r � <genexpr>z.check_has_incompatibilities.<locals>.<genexpr>* s, � � � �U�U�U�e�F�m�/@�@�U�U�U�U�U�Ur )�get�any)r r �module_info� is_enabledr! s r �check_has_incompatibilitiesr- "