Commit afef35e9 authored by Marcia Ramos's avatar Marcia Ramos

Merge branch 'docs/cache-clear-image' into 'master'

Add image for clearing the cache docs

Closes gitlab-ee#4642

See merge request gitlab-org/gitlab-ce!17932
parents af87f802 fade3e24
...@@ -454,17 +454,19 @@ next run of the pipeline, the cache will be stored in a different location. ...@@ -454,17 +454,19 @@ next run of the pipeline, the cache will be stored in a different location.
> [Introduced](https://gitlab.com/gitlab-org/gitlab-ce/issues/41249) in GitLab 10.4. > [Introduced](https://gitlab.com/gitlab-org/gitlab-ce/issues/41249) in GitLab 10.4.
If you want to avoid editing `.gitlab-ci.yml`, you can easily clear the cache If you want to avoid editing `.gitlab-ci.yml`, you can easily clear the cache
via GitLab's UI. This will have an impact on all caches of your project as via GitLab's UI:
name of the cache directory will be renamed by appending an integer to it
(`-1`, `-2`, etc.):
1. Navigate to your project's **CI/CD > Pipelines** page. 1. Navigate to your project's **CI/CD > Pipelines** page
1. Click on the **Clear Runner caches** to clean up the cache. 1. Click on the **Clear Runner caches** button to clean up the cache
1. On the next push, your CI/CD job will use a new cache.
![Clear Runners cache](img/clear_runners_cache.png)
1. On the next push, your CI/CD job will use a new cache
Behind the scenes, this works by increasing a counter in the database, and the Behind the scenes, this works by increasing a counter in the database, and the
value of that counter is used to create the key for the cache. After a push, a value of that counter is used to create the key for the cache by appending an
new key is generated and the old cache is not valid anymore. integer to it: `-1`, `-2`, etc. After a push, a new key is generated and the
old cache is not valid anymore.
## Cache vs artifacts ## Cache vs artifacts
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment