|
|
|
@ -8,4 +8,7 @@ def includeme(config):
@@ -8,4 +8,7 @@ def includeme(config):
|
|
|
|
|
Activate this setup using ``config.include('ordr2.views')``. |
|
|
|
|
|
|
|
|
|
''' |
|
|
|
|
config.add_static_view('static', 'ordr2:static', cache_max_age=3600) |
|
|
|
|
settings = config.get_settings() |
|
|
|
|
age = int(settings.get('static_views.cache_max_age', 3600)) |
|
|
|
|
|
|
|
|
|
config.add_static_view('static', 'ordr2:static', cache_max_age=age) |
|
|
|
|