{"action":"created","issue":{"url":"https://api.github.com/repos/FriendsOfSymfony/FOSHttpCache/issues/332","repository_url":"https://api.github.com/repos/FriendsOfSymfony/FOSHttpCache","labels_url":"https://api.github.com/repos/FriendsOfSymfony/FOSHttpCache/issues/332/labels{/name}","comments_url":"https://api.github.com/repos/FriendsOfSymfony/FOSHttpCache/issues/332/comments","events_url":"https://api.github.com/repos/FriendsOfSymfony/FOSHttpCache/issues/332/events","html_url":"https://github.com/FriendsOfSymfony/FOSHttpCache/pull/332","id":188818030,"number":332,"title":"Add support for Varnish xkey","user":{"login":"andrerom","id":289757,"avatar_url":"https://avatars.githubusercontent.com/u/289757?v=3","gravatar_id":"","url":"https://api.github.com/users/andrerom","html_url":"https://github.com/andrerom","followers_url":"https://api.github.com/users/andrerom/followers","following_url":"https://api.github.com/users/andrerom/following{/other_user}","gists_url":"https://api.github.com/users/andrerom/gists{/gist_id}","starred_url":"https://api.github.com/users/andrerom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrerom/subscriptions","organizations_url":"https://api.github.com/users/andrerom/orgs","repos_url":"https://api.github.com/users/andrerom/repos","events_url":"https://api.github.com/users/andrerom/events{/privacy}","received_events_url":"https://api.github.com/users/andrerom/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":21,"created_at":"2016-11-11T18:11:19Z","updated_at":"2017-02-08T14:44:18Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/FriendsOfSymfony/FOSHttpCache/pulls/332","html_url":"https://github.com/FriendsOfSymfony/FOSHttpCache/pull/332","diff_url":"https://github.com/FriendsOfSymfony/FOSHttpCache/pull/332.diff","patch_url":"https://github.com/FriendsOfSymfony/FOSHttpCache/pull/332.patch"},"body":"xkey promises to have vastly better performance than invalidation by BAN for two reasons:\r\n- It keeps a hash table of the tags around so it can efficiently do invalidation directly instead of filling up a list of regex bans on request data slowing things down\r\n- It supports soft purge making it able to take into account grace time\r\n\r\nIts availability for Varnish 4.1+ is about to be a lot better with `varnish-modules`vmod collection being built by Varnish [as of March this year](https://www.varnish-cache.org/lists/pipermail/varnish-dev/2016-March/008800.html), and showing up in Ubuntu as of [16.10](http://packages.ubuntu.com/yakkety/varnish-modules) and next year's [Debian 9](https://packages.debian.org/stretch/varnish-modules) _(Stretch)_.  And besides that, it can be used with [Varnish Plus](http://book.varnish-software.com/4.0/chapters/Cache_Invalidation.html#hashtwo-xkey-varnish-software-implementation-of-surrogate-keys).\r\n\r\nFurther reading:\r\n- Doc: https://github.com/varnish/varnish-modules/blob/master/docs/vmod_xkey.rst\r\n- Wikipedia: https://wikitech.wikimedia.org/wiki/XKey\r\n\r\nAt this point just for discussion / testing. Would need VCL, doc for how to configure it, _(..)_ once the concept/approach is agreed.\r\n\r\n\r\n# Doc draft\r\n\r\nConfiguring xkey:\r\n```yml\r\ntags_header: \"xkey\"\r\ntags_invalidation_by_purge: true\r\ntags_separator: \" \"\r\n```"},"comment":{"url":"https://api.github.com/repos/FriendsOfSymfony/FOSHttpCache/issues/comments/278347343","html_url":"https://github.com/FriendsOfSymfony/FOSHttpCache/pull/332#issuecomment-278347343","issue_url":"https://api.github.com/repos/FriendsOfSymfony/FOSHttpCache/issues/332","id":278347343,"user":{"login":"andrerom","id":289757,"avatar_url":"https://avatars.githubusercontent.com/u/289757?v=3","gravatar_id":"","url":"https://api.github.com/users/andrerom","html_url":"https://github.com/andrerom","followers_url":"https://api.github.com/users/andrerom/followers","following_url":"https://api.github.com/users/andrerom/following{/other_user}","gists_url":"https://api.github.com/users/andrerom/gists{/gist_id}","starred_url":"https://api.github.com/users/andrerom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrerom/subscriptions","organizations_url":"https://api.github.com/users/andrerom/orgs","repos_url":"https://api.github.com/users/andrerom/repos","events_url":"https://api.github.com/users/andrerom/events{/privacy}","received_events_url":"https://api.github.com/users/andrerom/received_events","type":"User","site_admin":false},"created_at":"2017-02-08T14:44:18Z","updated_at":"2017-02-08T14:44:18Z","body":"ok, clear :)"}}
{"actor":{"display_login":"andrerom"}}