OpenSlides/openslides/config/middleware.py

12 lines
261 B
Python
Raw Normal View History

# -*- 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()