Show More
@@ -174,7 +174,7 b' def backend_key_generator(backend):' | |||
|
174 | 174 | return wrapper |
|
175 | 175 | |
|
176 | 176 | |
|
177 | def get_or_create_region(region_name, region_namespace: str = None, use_async_runner=False): | |
|
177 | def get_or_create_region(region_name, region_namespace: str = None, use_async_runner=False, force=False): | |
|
178 | 178 | from .backends import FileNamespaceBackend |
|
179 | 179 | from . import async_creation_runner |
|
180 | 180 | |
@@ -191,7 +191,7 b' def get_or_create_region(region_name, re' | |||
|
191 | 191 | raise ValueError(f'{FileNamespaceBackend} used requires to specify region_namespace param') |
|
192 | 192 | |
|
193 | 193 | region_exist = region_meta.dogpile_cache_regions.get(region_namespace) |
|
194 | if region_exist: | |
|
194 | if region_exist and not force: | |
|
195 | 195 | log.debug('Using already configured region: %s', region_namespace) |
|
196 | 196 | return region_exist |
|
197 | 197 |
General Comments 0
You need to be logged in to leave comments.
Login now