Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'doc/development/polling.md')
-rw-r--r--doc/development/polling.md4
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