14 lines
393 B
Python
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
|