-
Select Topic AreaQuestion BodyMy repository has 10 GB of cache storage limit. But sometimes usage of cache exceeds it. I've even seen usage reach 20 GB. And github action workflow sometimes fail because of cache storage connection fail. I'm guessing this connection issue was caused by exceeding the cache limit. How do I fix this? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hi @Tocktock , GitHub will remove any cache entries that have not been accessed in over 7 days. There is no limit on the number of caches you can store, but the total size of all caches in a repository is limited. By default, the limit is 10 GB per repository, but this limit might be different depending on policies set by your enterprise owners or repository administrators. If you exceed the limit, GitHub will save the new cache but will begin evicting caches until the total size is less than the repository limit. For information on changing the policies for the repository cache size limit, see "Enforcing policies for GitHub Actions in your enterprise" and "Managing GitHub Actions settings for a repository." |
Beta Was this translation helpful? Give feedback.
-
There are APIs to delete cache entries. And you could split your cache items into smaller units. |
Beta Was this translation helpful? Give feedback.
Hi @Tocktock ,
GitHub will remove any cache entries that have not been accessed in over 7 days. There is no limit on the number of caches you can store, but the total size of all caches in a repository is limited. By default, the limit is 10 GB per repository, but this limit might be different depending on policies set by your enterprise owners or repository administrators.
If you exceed the limit, GitHub will save the new cache but will begin evicting caches until the total size is less than the repository limit.
For information on changing the policies for the repository cache size limit, see "Enforcing policies for GitHub Actions in your enterprise" and "Managing GitHub Actions setting…