https://t.me/AnonymousX5
Server : Apache
System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64
User : njnconst ( 1116)
PHP Version : 8.4.18
Disable Function : NONE
Directory :  /lib64/python2.7/site-packages/django/views/decorators/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib64/python2.7/site-packages/django/views/decorators/cache.pyc
�
r�\c@skddlmZddlmZmZddlmZmZddlm	Z	d�Z
d�Zd�ZdS(	i����(twraps(t#decorator_from_middleware_with_argstavailable_attrs(tpatch_cache_controltadd_never_cache_headers(tCacheMiddlewarecOs�t|�dks"t|d�r1td��n|d}|jdd	�}|jdd	�}|rttd��ntt�d|d|d|�S(
s?
    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
    sites.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.
    iis>cache_page has a single mandatory positional argument: timeouttcachet
key_prefixsCcache_page has two optional keyword arguments: cache and key_prefixt
cache_timeouttcache_aliasN(tlentcallablet	TypeErrortpoptNoneRR(targstkwargsRR	R((s?/tmp/pip-install-XxeQeY/django/django/views/decorators/cache.pyt
cache_pages"
cs�fd�}|S(Ncs.t�dt�����fd��}|S(Ntassignedcs#�|||�}t|��|S(N(R(trequestRtkwtresponse(Rtviewfunc(s?/tmp/pip-install-XxeQeY/django/django/views/decorators/cache.pyt_cache_controlled$s
(RR(RR(R(Rs?/tmp/pip-install-XxeQeY/django/django/views/decorators/cache.pyt_cache_controller#s*((RR((Rs?/tmp/pip-install-XxeQeY/django/django/views/decorators/cache.pyt
cache_control"scs+t�dt����fd��}|S(sX
    Decorator that adds headers to a response so that it will
    never be cached.
    Rcs �|||�}t|�|S(N(R(RRRR(t	view_func(s?/tmp/pip-install-XxeQeY/django/django/views/decorators/cache.pyt_wrapped_view_func2s
(RR(RR((Rs?/tmp/pip-install-XxeQeY/django/django/views/decorators/cache.pytnever_cache-s'N(
t	functoolsRtdjango.utils.decoratorsRRtdjango.utils.cacheRRtdjango.middleware.cacheRRRR(((s?/tmp/pip-install-XxeQeY/django/django/views/decorators/cache.pyt<module>s		

https://t.me/AnonymousX5 - 2025