Django

Code

Changeset 5618

Show
Ignore:
Timestamp:
07/05/07 06:08:40 (1 year ago)
Author:
mtredinnick
Message:

Added CACHE_MIDDLEWARE_SECONDS to global settings and documentation (it's
used by the cache middleware). Refs #1015.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/conf/global_settings.py

    r5609 r5618  
    284284CACHE_BACKEND = 'simple://' 
    285285CACHE_MIDDLEWARE_KEY_PREFIX = '' 
     286CACHE_MIDDLEWARE_SECONDS = 600 
    286287 
    287288#################### 
  • django/trunk/docs/settings.txt

    r5609 r5618  
    234234 
    235235CACHE_MIDDLEWARE_KEY_PREFIX 
     236--------------------------- 
    236237 
    237238Default: ``''`` (Empty string) 
     
    239240The cache key prefix that the cache middleware should use. See the 
    240241`cache docs`_. 
     242 
     243CACHE_MIDDLEWARE_SECONDS 
     244------------------------ 
     245 
     246Default: ``600`` 
     247 
     248The default number of seconds to cache a page when the caching middleware or 
     249``cache_page()`` decorator is used. 
    241250 
    242251DATABASE_ENGINE