0752d476e4
* Remove headers * Changed lineendings to linux style in AUTHORS and CHANGELOG
12 lines
261 B
Python
12 lines
261 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
from openslides.config.api import config
|
|
|
|
|
|
class ConfigCacheMiddleware(object):
|
|
"""
|
|
Middleware to refresh the config cache before processing any view.
|
|
"""
|
|
def process_request(self, request):
|
|
config.setup_cache()
|