*B,(x1` X d dl mZ d dlZd dlZd dlZd dlmZ d dlmZ d dl
mZmZ d dl
mZmZ d Zedk rr ej ej Z e Zej d ee d
ej ee dS dS ) )absolute_importN)defaultdict)docroot)
_run_pre_hook_run_post_hook)WposUserget_parent_pidc d | d D }t d }|D ]x}t | \ }}t | }|| d | || d | d y| d d }|d k rd
| d v rt
| dS |dk rt | dS dS )
a
If admin triggers this function we are checking all affected users wps for compatibility
Need optimization in future
Hook is triggered by events
Web - WHM: -> MultiPHP Manager: -> User Domain Settings
CLI - Whostmgr Lang::PHP::set_vhost_versions post
c h | ]\ }}d |v |S )vhost ).0kvs /py/clwpos/hooks/cpanel/admin_disable_caching.py