Changeset 740

Show
Ignore:
Timestamp:
05/03/07 02:08:48 (1 year ago)
Author:
brian
Message:

cached doc_index to improve performance.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • cherokee-www/trunk/cherokee/documentation/urls.py

    r738 r740  
    11 
    22from django.conf.urls.defaults import * 
     3from django.views.decorators.cache import cache_page 
     4 
    35from views import * 
    46 
    57urlpatterns = patterns('', 
    6     (r'^$', doc_index), 
     8    (r'^$', cache_page(doc_index, 60 * 60)), 
    79    (r'^(?P<version>[\d.]+)/$', doc_detail), 
    810    (r'^trunk/$', doc_detail, {'version': 'trunk'}),