Files
dibbler/dibbler/queries/update_cache.py
h7x4 4d10c26352
All checks were successful
Run tests / run-tests (push) Successful in 2m4s
Run benchmarks / run-tests (push) Successful in 11m21s
WIP: caching
2026-01-08 14:02:37 +09:00

14 lines
393 B
Python

def update_cache(
use_cache: bool = True,
) -> None:
"""
Update the cache used for searching products.
If `use_cache` is False, the cache will be rebuilt from scratch.
"""
# TODO:
# get last transaction
# get last cache update transaction
# get affected users and products since last cache update
# update cache for affected users and products