feat: rename TABLE_NAMES_CACHE_CONFIG to DATA_CACHE_CONFIG (#11509)

* feat: rename TABLE_NAMES_CACHE_CONFIG to DATA_CACHE_CONFIG

The corresponding cache will now also cache the query results.

* Slice use DATA_CACHE_CONFIG CACHE_DEFAULT_TIMEOUT

* Add test for default cache timeout

* rename FAR_FUTURE to ONE_YEAR_IN_SECS
This commit is contained in:
Jesse Yang
2020-11-13 22:35:10 -08:00
committed by GitHub
parent 68693c7c0a
commit 4cfcaebb61
22 changed files with 438 additions and 379 deletions

View File

@@ -160,7 +160,7 @@ class BaseScreenshot:
logger.error("Failed at resizing thumbnail %s", ex)
payload = None
if payload and cache:
if payload:
logger.info("Caching thumbnail: %s", cache_key)
cache.set(cache_key, payload)
logger.info("Done caching thumbnail")