[Projeler-commits] r210 - in zangetsu: . cache
projeler-uludag at uludag.org.tr
projeler-uludag at uludag.org.tr
2 Eki 2006 Pzt 18:42:59 EEST
Author: caglar
Date: Mon Oct 2 18:42:59 2006
New Revision: 210
Added:
zangetsu/cache/
Modified:
zangetsu/settings.py
Log:
Caching enabled, we all love django
Modified: zangetsu/settings.py
=================================================================
--- zangetsu/settings.py (original)
+++ zangetsu/settings.py Mon Oct 2 18:42:59 2006
@@ -20,6 +20,9 @@
DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3.
DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3.
+CACHE_BACKEND = 'file:///%s/cache' % DOCUMENT_ROOT
+CACHE_MIDDLEWARE_SECONDS=600
+
# Local time zone for this installation. All choices can be found here:
# http://www.postgresql.org/docs/current/static/datetime-keywords.html#DATETIME-TIMEZONE-SET-TABLE
TIME_ZONE = 'Europe/Istanbul'
@@ -63,6 +66,7 @@
)
MIDDLEWARE_CLASSES = (
+ 'django.middleware.cache.CacheMiddleware',
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.locale.LocaleMiddleware',
Projeler-commits mesaj listesiyle ilgili
daha fazla bilgi