diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-09-18 14:14:39 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-09-18 14:14:39 +0000 |
commit | 1eb82b65c554f21d83447f895a6208905fabe112 (patch) | |
tree | ab12f01b3dc46f11c02afea1e470a78f06ca70c2 /doc/development/polling.md | |
parent | 4ab54c2233e91f60a80e5b6fa2181e6899fdcc3e (diff) | |
download | gitlab-ce-stable-branch-foss-test.tar.gz |
Add latest changes from gitlab-org/gitlab@12-3-auto-deploy-20190916stable-branch-foss-test
Diffstat (limited to 'doc/development/polling.md')
-rw-r--r-- | doc/development/polling.md | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/doc/development/polling.md b/doc/development/polling.md index b664ddb9888..76bb5ae7819 100644 --- a/doc/development/polling.md +++ b/doc/development/polling.md @@ -11,9 +11,7 @@ Instead you should use polling mechanism with ETag caching in Redis. ## How to use it 1. Add the path of the endpoint which you want to poll to - `Gitlab::EtagCaching::Router`. -1. Set the polling interval header for the response with - `Gitlab::PollingInterval.set_header`. + `Gitlab::EtagCaching::Middleware`. 1. Implement cache invalidation for the path of your endpoint using `Gitlab::EtagCaching::Store`. Whenever a resource changes you have to invalidate the ETag for the path that depends on this |