From 35797ecf2f7abc65832074722c6371ceb7496d0c Mon Sep 17 00:00:00 2001 From: Eduardo Apolinario <653394+eapolinario@users.noreply.github.com> Date: Thu, 18 Apr 2024 17:11:41 -0700 Subject: [PATCH] Explain how to enable/disable local caching (#5242) * Explain how to enable/disable local caching Signed-off-by: Eduardo Apolinario <653394+eapolinario@users.noreply.github.com> * Update docs/user_guide/development_lifecycle/caching.md Co-authored-by: David Espejo <82604841+davidmirror-ops@users.noreply.github.com> Signed-off-by: Eduardo Apolinario <653394+eapolinario@users.noreply.github.com> --------- Signed-off-by: Eduardo Apolinario <653394+eapolinario@users.noreply.github.com> Co-authored-by: David Espejo <82604841+davidmirror-ops@users.noreply.github.com> --- docs/user_guide/development_lifecycle/caching.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/user_guide/development_lifecycle/caching.md b/docs/user_guide/development_lifecycle/caching.md index b0cc202cd9..64f772054c 100644 --- a/docs/user_guide/development_lifecycle/caching.md +++ b/docs/user_guide/development_lifecycle/caching.md @@ -126,6 +126,7 @@ Task executions can be cached across different versions of the task because a ch The flytekit package uses the [diskcache](https://github.com/grantjenks/python-diskcache) package, specifically [diskcache.Cache](http://www.grantjenks.com/docs/diskcache/tutorial.html#cache), to aid in the memoization of task executions. The results of local task executions are stored under `~/.flyte/local-cache/` and cache keys are composed of **Cache Version**, **Task Signature**, and **Task Input Values**. Similar to the remote case, a local cache entry for a task will be invalidated if either the `cache_version` or the task signature is modified. In addition, the local cache can also be emptied by running the following command: `pyflyte local-cache clear`, which essentially obliterates the contents of the `~/.flyte/local-cache/` directory. +To disable the local cache, you can set the `local.cache_enabled` config option (e.g. by setting the environment variable `FLYTE_LOCAL_CACHE_ENABLED=False`). :::{note} The format used by the store is opaque and not meant to be inspectable.