Changeset 9385 for src


Ignore:
Timestamp:
Jul 12, 2011, 10:34:12 AM (14 years ago)
Author:
rick
Message:

Not using the special OSM_CACHE anymore, get rid of it

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/django_gheat/settings.py

    r9376 r9385  
    44PROJECT_HOME = os.path.abspath(os.path.dirname(__file__))
    55
    6 OSM_CACHE_DIR = '/var/osm-cache'
    7 if not os.path.exists(OSM_CACHE_DIR):
    8   OSM_CACHE_DIR = '/tmp/osm-cache'
    9 
    10 OSM_CACHE = 'osm_cache'
    11 
    12 
    13 
    14 DEBUG = os.path.exists(PROJECT_HOME + '/debug-active')
     6DEBUG = os.path.exists(PROJECT_HOME + '/enable-debug')
    157TEMPLATE_DEBUG = DEBUG
    16 
    17 if DEBUG and not os.path.exists(OSM_CACHE_DIR):
    18   os.mkdir(OSM_CACHE_DIR)
    198
    209# Required for Etags Caching Implementation
     
    4029CACHES = {
    4130    'default': {
    42         'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
    43         'LOCATION': 'unique-snowflake'
    44     },
    45     OSM_CACHE: {
    46         'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache',
    47         'LOCATION': OSM_CACHE_DIR,
     31        'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
     32        'LOCATION': '127.0.0.1:11211',
    4833        'TIMEOUT': 3600 * 24 * 7,
    4934        'OPTIONS': {
    5035            'MAX_ENTRIES': 100000
    5136        }
    52     }
     37    },
    5338}
    5439
Note: See TracChangeset for help on using the changeset viewer.