Selora
03/19/2025, 1:52 AMMarvin
03/19/2025, 1:52 AMcache_expiration
keyword in the task decorator. However, the documentation does not explicitly state that cached results are automatically deleted after expiry. It is more likely that the expired cache becomes invalid and is not used, rather than being actively deleted.
For more details, you can refer to the Prefect 3.x task caching documentation.Selora
03/19/2025, 1:53 AMMarvin
03/19/2025, 1:53 AMrefresh_cache
option or the PREFECT_TASKS_REFRESH_CACHE
setting to ignore cached data and rerun tasks, effectively refreshing the cache. For more information, you can refer to the task caching documentation.