diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-09-17 12:06:11 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-09-17 12:06:11 +0300 |
commit | e567b4c2df7dc4085d213db029eff6b6fcde0152 (patch) | |
tree | 801718b86d32bdd82a3cd90760e06a4d7a51b71d /doc/development/polling.md | |
parent | 42b933efc3384386c1991daca1a6d58160f70176 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/development/polling.md')
-rw-r--r-- | doc/development/polling.md | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/development/polling.md b/doc/development/polling.md index 76bb5ae7819..b664ddb9888 100644 --- a/doc/development/polling.md +++ b/doc/development/polling.md @@ -11,7 +11,9 @@ 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::Middleware`. + `Gitlab::EtagCaching::Router`. +1. Set the polling interval header for the response with + `Gitlab::PollingInterval.set_header`. 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 |