summaryrefslogtreecommitdiff
path: root/doc/development/polling.md
diff options
context:
space:
mode:
Diffstat (limited to 'doc/development/polling.md')
-rw-r--r--doc/development/polling.md4
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