Django

Code

Show
Ignore:
Timestamp:
06/26/08 10:42:33 (7 months ago)
Author:
brosner
Message:

newforms-admin: Merged from trunk up to [7766].

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/branches/newforms-admin

    • Property svnmerge-integrated changed from /django/trunk:1-4345,4350-4357,4359-4365,4371-4372,4374-4377,4380-4386,4388,4390-4391,4400-4402,4404-4408,4410,4412-4419,4426-4427,4430-4432,4434,4441,4443-4444,4446-4447,4450,4452-4453,4455-4458,4476,4503,4546,4564-4569,4580-4586,4617,4630,4641-6390,6392-7729 to /django/trunk:1-4345,4350-4357,4359-4365,4371-4372,4374-4377,4380-4386,4388,4390-4391,4400-4402,4404-4408,4410,4412-4419,4426-4427,4430-4432,4434,4441,4443-4444,4446-4447,4450,4452-4453,4455-4458,4476,4503,4546,4564-4569,4580-4586,4617,4630,4641-6390,6392-7768
  • django/branches/newforms-admin/docs/cache.txt

    r7351 r7770  
    337337Simply pass as many arguments to ``{% cache %}`` as you need. 
    338338 
     339The cache timeout can be a template variable, as long as the template variable 
     340resolves to an integer value. For example, if the template variable 
     341``my_timeout`` is set to the value ``600``, then the following two examples are 
     342equivalent:: 
     343 
     344    {% cache 600 sidebar %} ... {% endcache %} 
     345    {% cache my_timeout sidebar %} ... {% endcache %} 
     346 
     347This feature is useful in avoiding repetition in templates. You can set the 
     348timeout in a variable, in one place, and just reuse that value. 
     349 
    339350The low-level cache API 
    340351=======================