PATH:
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
clwpos
/
object_cache
/
__pycache__
� 4�i � � � d dl mZ d dlZd dlZd dlZd dlZd dlmZmZ d dl m Z d dlmZm Z d dlmZ d dlmZmZmZmZ d dlmZ d d lmZ d d lmZ d dlmZmZmZ d dlm Z ed ej! d�� � Z"dZ#e � d�Z$dee% dee& fd�Z'defd�Z(defd�Z)dee% fd�Z*dee% dee fd�Z+dej, fd�Z-d� Z.e/dk r e.� � dS dS )� )�absolute_importN)�List�Optional)�CageFs)�ALT_PHP_PREFIX�CLWPOS_VAR_DIR)�PHP)�create_generic_php�get_alt_php_versions�#update_selector_built_in_extensions�disable_selector_extensions)� setup_logging)�OBJECT_CACHE_FEATURE)�is_module_visible_for_user)�PhpIniConfig�create_pid_file�acquire_lock)�)filter_php_versions_with_not_loaded_redis�enable_redis_for_alt_phpz,/var/log/clwpos/enable_redis_for_alt_php.log)�caller_name� file_level�logfile_path�acceleratewp.iniz$/admin/do_not_modify_global_php.flag�version�all_inic � � t j � t � � st � d� � d S t | � � }|D ]6}t |t �� � }|� dt � �|� � �7d S )Nz Nothing to do�� custom_logger� etc/php.d/) �os�path�exists�DO_NOT_MODIFY_PHP_GLOBAL_MARKER�logger�debug�supported_alt_phpr �remove_custom_ini�awp_ini)r r �supported_version�php_version�php_ini_configs �2py/clwpos/object_cache/enable_redis_for_alt_php.pyr'