OpenSlides/openslides/core/middleware.py

10 lines
222 B
Python
Raw Normal View History

2015-06-29 12:08:15 +02:00
from .config import config
class ConfigCacheMiddleware(object):
"""
Middleware to refresh the config cache before processing any view.
"""
def process_request(self, request):
config.setup_cache()