| Server IP : 217.160.0.135 / Your IP : 216.73.217.85 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/lib/python3/dist-packages/django/views/decorators/__pycache__/ |
Upload File : |
�
�|�e� � �T � d dl mZ d dlmZ d dlmZmZ d dlmZ ddd�d�Z d� Z
d � ZdS )
� ��wraps)�CacheMiddleware)�add_never_cache_headers�patch_cache_control)�#decorator_from_middleware_with_argsN)�cache�
key_prefixc �B � t t � � | ||�� � S )a9
Decorator for views that tries getting the page from the cache and
populates the cache if the page isn't in the cache yet.
The cache is keyed by the URL and some data from the headers.
Additionally there is the key prefix that is used to distinguish different
cache areas in a multi-site setup. You could use the
get_current_site().domain, for example, as that is unique across a Django
project.
Additionally, all headers from the response's Vary header will be taken
into account on caching -- just like the middleware does.
)�page_timeout�cache_aliasr
)r r )�timeoutr r
s �?/usr/lib/python3/dist-packages/django/views/decorators/cache.py�
cache_pager s. � � @�.��?�?��%�J�� � � � c � � � � fd�}|S )Nc �@ �� � t � � � �� fd�� � }|S )Nc �: �� �| g|�R i |��}t |fi ��� |S �N)r )�request�args�kw�response�kwargs�viewfuncs ��r �_cache_controlledzCcache_control.<locals>._cache_controller.<locals>._cache_controlled s= �� ��x��5�$�5�5�5�"�5�5�H���3�3�F�3�3�3��Or r )r r r s ` �r �_cache_controllerz(cache_control.<locals>._cache_controller s: ��� � �x��� � � � � �
�� � !� r � )r r s ` r �
cache_controlr s$ �� �!� !� !� !� !� �r c �<