mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-11 13:23:00 +00:00
cache key fix
This commit is contained in:
@@ -116,7 +116,7 @@ class CacheManager:
|
|||||||
cache_path = self._get_cache_path(key)
|
cache_path = self._get_cache_path(key)
|
||||||
with self._cache_lock:
|
with self._cache_lock:
|
||||||
with open(cache_path, 'w') as f:
|
with open(cache_path, 'w') as f:
|
||||||
json.dump(data, f)
|
json.dump(data, f, indent=4, cls=DateTimeEncoder)
|
||||||
|
|
||||||
# Update memory cache
|
# Update memory cache
|
||||||
self._memory_cache[key] = data
|
self._memory_cache[key] = data
|
||||||
|
|||||||
Reference in New Issue
Block a user