Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/config_generator/external_layer_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@

capabilites_cache = ExpiringDict()

def clear_capabilities_cache():
global capabilites_cache
capabilites_cache.cache = {}

def getChildElement(parent, path):
for part in path.split("/"):
Expand Down
4 changes: 3 additions & 1 deletion src/config_generator/map_viewer_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import traceback
import urllib.parse

from .external_layer_utils import resolve_external_layer
from .external_layer_utils import resolve_external_layer, clear_capabilities_cache
from .permissions_query import PermissionsQuery
from .service_config import ServiceConfig

Expand Down Expand Up @@ -89,6 +89,8 @@ def __init__(self, tenant_path, generator_config, themes_reader,
"""
super().__init__('mapViewer', schema_url, service_config, logger)

clear_capabilities_cache()

self.tenant_path = tenant_path
self.themes_reader = themes_reader
self.config_models = config_models
Expand Down