Module ImportFrom alias Import alias ImportFrom alias alias alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Call NameLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type NameLoad body Raise Call NameLoad BinOpMod Str AttributeLoad AttributeLoad NameLoad attr attr TryExcept body Assign NameStore Call NameLoad NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad body Raise Call NameLoad BinOpMod Str NameLoad Assign NameStore Call AttributeLoad Str attr ListComp Call NameLoad Call NameLoad NameLoad NameLoad comprehension NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Return NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Str Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If CompareLt Call NameLoad NameLoad Num body Raise Call NameLoad BinOpMod Str SubscriptLoad NameLoad Index Num Return Call NameLoad NameLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Slice Num decorator_list Call AttributeLoad NameLoad attr Str
N/A __future__ unicode_literals N/A hashlib django.template Library Node TemplateSyntaxError Variable VariableDoesNotExist django.template resolve_variable django.core.cache cache django.utils.encoding force_bytes django.utils.http urlquote N/A register N/A Library CacheNode N/A Node N/A __init__ N/A N/A self nodelist expire_time_var fragment_name vary_on N/A N/A N/A N/A self nodelist nodelist N/A N/A self expire_time_var N/A Variable expire_time_var N/A N/A self fragment_name fragment_name N/A N/A self vary_on vary_on N/A render N/A N/A self context N/A N/A N/A N/A N/A expire_time N/A N/A N/A self expire_time_var resolve context N/A N/A N/A VariableDoesNotExist N/A N/A N/A TemplateSyntaxError N/A "cache" tag got an unknown variable: %r N/A N/A self expire_time_var var N/A N/A N/A expire_time N/A int expire_time N/A N/A N/A N/A ValueError TypeError N/A N/A N/A TemplateSyntaxError N/A "cache" tag got a non-integer timeout value: %r expire_time N/A key N/A N/A : join N/A N/A urlquote N/A resolve_variable var context N/A var N/A self vary_on N/A args N/A N/A hashlib md5 N/A force_bytes key N/A cache_key N/A template.cache.%s.%s N/A N/A self fragment_name N/A N/A args hexdigest N/A value N/A N/A cache get cache_key N/A N/A value None N/A N/A value N/A N/A N/A self nodelist render context N/A N/A N/A cache set cache_key value expire_time N/A value N/A N/A do_cache N/A N/A parser token N/A N/A N/A 
    This will cache the contents of a template fragment for a given amount
    of time.

    Usage::

        {% load cache %}
        {% cache [expire_time] [fragment_name] %}
            .. some expensive processing ..
        {% endcache %}

    This tag also supports varying by a list of arguments::

        {% load cache %}
        {% cache [expire_time] [fragment_name] [var1] [var2] .. %}
            .. some expensive processing ..
        {% endcache %}

    Each unique set of arguments will result in a unique cache entry.
     N/A nodelist N/A N/A parser parse N/A endcache N/A N/A N/A parser delete_first_token N/A tokens N/A N/A N/A token contents split N/A N/A N/A len tokens 3 N/A N/A N/A TemplateSyntaxError N/A '%r' tag requires at least 2 arguments. N/A tokens N/A 0 N/A N/A CacheNode nodelist N/A tokens N/A 1 N/A tokens N/A 2 N/A tokens N/A 3 N/A N/A N/A register tag cache