0001-data-sources-fix-request-cache-to-use-unsigned-URL-3.patch
wcs/data_sources.py | ||
---|---|---|
179 | 179 |
if items is not None: |
180 | 180 |
return items |
181 | 181 | |
182 |
unsigned_url = url |
|
182 | 183 |
try: |
183 | 184 |
signature_key, orig = get_secret_and_orig(url) |
184 | 185 |
except MissingSecret: |
... | ... | |
205 | 206 |
item['text'] = item['id'] |
206 | 207 |
items.append(item) |
207 | 208 |
if hasattr(request, 'datasources_cache'): |
208 |
request.datasources_cache[url] = items |
|
209 |
request.datasources_cache[unsigned_url] = items
|
|
209 | 210 | |
210 | 211 |
if cache_duration: |
211 | 212 |
cache.set(cache_key, items, cache_duration) |
212 |
- |