From 1eb82b65c554f21d83447f895a6208905fabe112 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Wed, 18 Sep 2019 14:14:39 +0000 Subject: Add latest changes from gitlab-org/gitlab@12-3-auto-deploy-20190916 --- doc/development/polling.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'doc/development/polling.md') 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 -- cgit v1.2.1