Файловый менеджер - Редактировать - /opt/cloudlinux/venv/lib/python3.11/site-packages/clwpos/hooks/lib/__pycache__/admin_disable_caching.cpython-311.pyc
Назад
� �o^ha � � � d dl mZ d dlmZ d dlmZ d dlmZmZm Z m Z d dlmZ deeef fd�Z deeef fd�Zd S ) � )�absolute_import)�Dict)�drop_privileges)�create_php_info_file�*check_domains_wpos_info_and_disable_module�remove_php_info_file�%is_docroot_with_wpos_enabled_affected)�WposUser�users_affected_mapc � � | � � � D ]c\ }}t |j � � 5 t ||d � � s ddd� � �=t |� � ddd� � n# 1 swxY w Y �ddS )zX Create file with data about domains' php versions in user's .clwpos directory. �docroots_affectedN)�itemsr �namer r �r �user�infos �,py/clwpos/hooks/lib/admin_disable_caching.py� _run_pre_hookr s� � � )�.�.�0�0� '� '� ��d� �T�Y� '� '� '� '�8��t�DW�?X�Y�Y� �� '� '� '� '� '� '� '� !��&�&�&� '� '� '� '� '� '� '� '� '� '� '���� '� '� '� '��'� 's �A-�A-�-A1 �4A1 c � � | � � � D ]x\ }}t |j � � 5 t ||d � � s ddd� � �=t |d � � t |� � ddd� � n# 1 swxY w Y �ydS )a� Check incompatibilies for users' domains and disable object caching if needed. Sequential processing of users takes quite a long time. This method requires optimization or running in background process. For now it was not possible to implement launch in background process since cPanel parent process tracks all child processes (including those called via subprocess.Popen and double os.fork) and continues to wait util all its child processes are terminated. r N�domains_affected)r r r r r r r s r �_run_post_hookr "