Changeset 7770 for django/branches/newforms-admin/docs/cache.txt
- Timestamp:
- 06/26/08 10:42:33 (7 months ago)
- Files:
-
- django/branches/newforms-admin (modified) (1 prop)
- django/branches/newforms-admin/docs/cache.txt (modified) (1 diff)
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 337 337 Simply pass as many arguments to ``{% cache %}`` as you need. 338 338 339 The cache timeout can be a template variable, as long as the template variable 340 resolves 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 342 equivalent:: 343 344 {% cache 600 sidebar %} ... {% endcache %} 345 {% cache my_timeout sidebar %} ... {% endcache %} 346 347 This feature is useful in avoiding repetition in templates. You can set the 348 timeout in a variable, in one place, and just reuse that value. 349 339 350 The low-level cache API 340 351 =======================
