Commit 34b88bc0 authored by Evan Read's avatar Evan Read

Merge branch 'docs-development-polling-update' into 'master'

Fix outdated Polling development doc

See merge request gitlab-org/gitlab!16749
parents cbf85e3e 52c558e1
......@@ -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
......
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