10 lines
236 B
Python
10 lines
236 B
Python
|
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()
|