This commit is contained in:
willipink 2020-10-25 23:11:10 +00:00
parent 869274cf77
commit d0ed605f70
2 changed files with 15 additions and 1 deletions

View File

@ -1,3 +1,3 @@
<span class="badge badge-pill badge-light">Version 201004</span>
<span class="badge badge-pill badge-light">Version 201026</span>
</body>
</html>

View File

@ -43,7 +43,9 @@ INSTALLED_APPS = [
MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.cache.UpdateCacheMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.cache.FetchFromCacheMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
@ -129,3 +131,15 @@ MAINTENANCE_MODE_READ_ONLY = False
# do not redirect after login
LOGIN_REDIRECT_URL = './'
# caching
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache',
'LOCATION': '/var/tmp/django_cache',
}
}
# caching
CACHE_MIDDLEWARE_ALIAS = 'default'
CACHE_MIDDLEWARE_SECONDS = 600